* 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
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