mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
(cherry picked from commit 684a862526)
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user