Add test case for infinite recursion in semtypes
This commit is contained in:
parent
d77c883911
commit
669db4216e
1 changed files with 8 additions and 0 deletions
8
tests/types/tinfiniterecursion.nim
Normal file
8
tests/types/tinfiniterecursion.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
discard """
|
||||||
|
errormsg: "illegal recursion in type 'XIM'"
|
||||||
|
line: 8
|
||||||
|
"""
|
||||||
|
|
||||||
|
type
|
||||||
|
XIM* = ptr XIM
|
||||||
|
XIMProc* = proc (a2: XIM)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue