* fixes #18983 #5282 #13008; recursive types casue infinite type * re * add testcases
This commit is contained in:
parent
f6eb1d4d7d
commit
a895bbf714
3 changed files with 39 additions and 2 deletions
7
tests/errmsgs/t18983.nim
Normal file
7
tests/errmsgs/t18983.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
errormsg: "illegal recursion in type 'A'"
|
||||
"""
|
||||
|
||||
type
|
||||
A* = A
|
||||
B = (A,)
|
||||
5
tests/errmsgs/t5282.nim
Normal file
5
tests/errmsgs/t5282.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
discard """
|
||||
errormsg: "illegal recursion in type 'x'"
|
||||
"""
|
||||
|
||||
type x = distinct x
|
||||
Loading…
Add table
Add a link
Reference in a new issue