summary refs log tree commit diff stats
path: root/tests/overload
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-10-30 16:59:38 +0800
committerGitHub <noreply@github.com>2020-10-30 09:59:38 +0100
commit3028c1be82a04c0271fcb98396f28ebc62775b3a (patch)
tree928371220e9d035c3ebad69f81aea0045edc51b5 /tests/overload
parent17f08b2939db224d533db846fc3fa8ab91cc9755 (diff)
downloadNim-3028c1be82a04c0271fcb98396f28ebc62775b3a.tar.gz
add testcase for #7416 (#15782)
Diffstat (limited to 'tests/overload')
-rw-r--r--tests/overload/t7416.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/overload/t7416.nim b/tests/overload/t7416.nim
new file mode 100644
index 000000000..4a9b2e7cb
--- /dev/null
+++ b/tests/overload/t7416.nim
@@ -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)
\ No newline at end of file