Nim/tests/types/tillegalrecursion3.nim

12 lines
159 B
Nim

discard """
errormsg: "illegal recursion in type 'Foo'"
"""
type
Imported {.importc.} = object
Foo = object
b: Imported
a: Foo
var myFoo: Foo