more robust handling of proc signatures containing inter-param type references
This commit is contained in:
parent
7dcf6ff50b
commit
ac271e76b1
6 changed files with 106 additions and 30 deletions
9
tests/generics/tsigtypeop.nim
Normal file
9
tests/generics/tsigtypeop.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
type
|
||||
Vec3[T] = array[3, T]
|
||||
|
||||
proc foo(x: Vec3, y: Vec3.T, z: x.T): x.type.T =
|
||||
return 10
|
||||
|
||||
var y: Vec3[int] = [1, 2, 3]
|
||||
var z: int = foo(y, 3, 4)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue