tillegalrecursion3.nim 159 B

12345678910111213
  1. discard """
  2. errormsg: "illegal recursion in type 'Foo'"
  3. """
  4. type
  5. Imported {.importc.} = object
  6. Foo = object
  7. b: Imported
  8. a: Foo
  9. var myFoo: Foo