parent
25eef64fe1
commit
6ef9430153
1 changed files with 5 additions and 0 deletions
|
|
@ -262,3 +262,8 @@ proc doSomething[A, B](t: tuple[a: A, b: B]) = discard
|
|||
|
||||
discard identity((c: 1, d: 2))
|
||||
doSomething(identity((1, 2)))
|
||||
|
||||
# bug #6231
|
||||
proc myProc[T, U](x: T or U) = discard
|
||||
|
||||
myProc[int, string](x = 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue