parent
c75cfb363f
commit
684a862526
1 changed files with 9 additions and 0 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue