From 3028c1be82a04c0271fcb98396f28ebc62775b3a Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Fri, 30 Oct 2020 16:59:38 +0800 Subject: add testcase for #7416 (#15782) --- tests/overload/t7416.nim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/overload/t7416.nim (limited to 'tests/overload') 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 -- cgit 1.4.1-2-gfad0