add testcase for #7416 (#15782)

This commit is contained in:
flywind
2020-10-30 16:59:38 +08:00
committed by GitHub
parent 17f08b2939
commit 3028c1be82

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)