add testcase for #7416 (#15782)

(cherry picked from commit 3028c1be82)
This commit is contained in:
flywind
2020-10-30 16:59:38 +08:00
committed by narimiran
parent a480cbddcc
commit 1d06c70c18

9
tests/overload/t7416.nim Normal file
View File

@@ -0,0 +1,9 @@
type
Foo[T] = object
IntFoo = Foo[int]
proc bar(b: object|tuple) = discard
proc bar(b: IntFoo) = discard
var f: IntFoo
bar(f)