Generic tuple recursion fix (#11115)
* fixes #1145 * unify error messages
This commit is contained in:
parent
da3b649539
commit
a432aedb54
4 changed files with 13 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "illegal recursion in type 'RefTreeInt'"
|
||||
errormsg: "illegal recursion in type 'RefTree'"
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
|
|||
9
tests/types/tillegaltuplerecursiongeneric2.nim
Normal file
9
tests/types/tillegaltuplerecursiongeneric2.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
errormsg: "illegal recursion in type 'TPearl'"
|
||||
"""
|
||||
|
||||
type
|
||||
TPearl[T] = tuple
|
||||
next: TPearl[T]
|
||||
|
||||
var x: TPearl[int]
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "invalid recursion in type 'Executor'"
|
||||
errormsg: "illegal recursion in type 'Executor'"
|
||||
line: 8
|
||||
"""
|
||||
# bug reported by PR #5637
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue