add testcase for #7416 (#15782)

This commit is contained in:
flywind 2020-10-30 16:59:38 +08:00 • committed by GitHub
commit 3028c1be82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)