Nim/tests/tillrec.nim
2009-09-15 23:22:22 +02:00

10 lines
228 B
Nim
Executable file

# test illegal recursive types
type
TLegal {.final.} = object
x: int
kids: seq[TLegal]
TIllegal {.final.} = object #ERROR_MSG illegal recursion in type 'TIllegal'
y: Int
x: array[0..3, TIllegal]