Size ptr tuple (#10846)
* fixes #10117 * Add support for recursive tuples * detect in generics
This commit is contained in:
parent
5661a8303c
commit
97c3b113a5
8 changed files with 153 additions and 10 deletions
7
tests/types/tillegaltuplerecursiongeneric.nim
Normal file
7
tests/types/tillegaltuplerecursiongeneric.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
errormsg: "illegal recursion in type 'RefTreeInt'"
|
||||
"""
|
||||
|
||||
type
|
||||
RefTree[T] = ref tuple[le, ri: RefTree[T]; data: T]
|
||||
RefTreeInt = RefTree[int]
|
||||
Loading…
Add table
Add a link
Reference in a new issue