closes #4466; add testcase (#20625)

This commit is contained in:
ringabout 2022-10-23 16:47:52 +08:00 • committed by GitHub
commit 684a862526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,3 +253,12 @@ block:
var x: Que[int] var x: Que[int]
doAssert(x.x == 0) 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)))