Open alaviss opened 3 months ago
I've tried building and running the provided example with the VM backend, and it works as it should.
Going by the actual output you showed, you using NimScript rather than the VM backend, which are two different things. In NimScript, hooks don't work at all, unrelated to ref
fields. Here's a reduced reproducer:
type
C = object
proc `=destroy`(dst: var C) =
discard
block:
var c = newC()
running the above results in the same crash.
I've changed the title of the issue, in order to make it clearer what's going on.
Example
Actual Output
Additional Information