mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 02:18:00 +00:00
(cherry picked from commit 6ef9430153)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user