ringabout
ringabout
!nim c --gc:arc ```nim type Date = object of RootObj # no bug if not `of RootObj` Common = object of RootObj name: string date: Date Foo = object name:...
> Bisect diagnostic seems consistent(?), points to the same PR... oh, shit. I made a mistake. I meant to test `-d:useMalloc`
!nim c --gc:arc -d:useMalloc ```nim type Date = object of RootObj # no bug if not `of RootObj` Common = object of RootObj name: string date: Date Foo = object...
It seems that we need to add an internal version of getTypeInst to skip aliases types
Okay, I will add something like `getTypeInstSkipAlias` to skip aliases
@nigredo-tori hello, would you mind having a look at this PR?
It breaks with ORC as well, related to https://github.com/nim-lang/Nim/issues/18341
Related to https://github.com/nim-lang/Nim/issues/15637
@heterodoxic hi, if you happen to have some free time, could you apply the hasField checking for `unsafeNew` as well?
The problem is that refc cannot handle copying of upcast of subtypes. `arc` circumvents this issue by disabling `ObjectAssignmentDefect`.