Files
Nim/tests/arc/t18971.nim
Derek 呆 f755e452d2 fix #18971 (#19070) [backport:1.6]
since the example code return value from global variable, instead
of first argument, the `n.len` is 1 which causes compiler crashes.
2021-10-29 19:55:48 +02:00

11 lines
124 B
Nim

discard """
cmd: "nim c --gc:arc $file"
"""
type MyObj = ref object
var o = MyObj()
proc x: var MyObj = o
var o2 = x()