closes #4466; add testcase (#20625)

(cherry picked from commit 684a862526)
This commit is contained in:
ringabout
2022-10-23 16:47:52 +08:00
committed by narimiran
parent 46543d8e9b
commit 5c4044cd80

View File

@@ -253,3 +253,12 @@ block:
var x: Que[int]
doAssert(x.x == 0)
# bug #4466
proc identity[T](t: T): T = t
proc doSomething[A, B](t: tuple[a: A, b: B]) = discard
discard identity((c: 1, d: 2))
doSomething(identity((1, 2)))