diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-21 22:49:15 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-21 22:49:15 +0200 |
commit | 14e496fab0d42eb54be38ccfb40b65f6c1d2cdf4 (patch) | |
tree | 325430a09ef06b02d5c3e1ebf173416d6dc59cae /tests | |
parent | 85ea9593b38351e69fedac61ff0c2b958bac4b7f (diff) | |
download | Nim-14e496fab0d42eb54be38ccfb40b65f6c1d2cdf4.tar.gz |
fixes #6393
Diffstat (limited to 'tests')
-rw-r--r-- | tests/errmsgs/tcant_overload_by_return_type.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errmsgs/tcant_overload_by_return_type.nim b/tests/errmsgs/tcant_overload_by_return_type.nim new file mode 100644 index 000000000..613a896b4 --- /dev/null +++ b/tests/errmsgs/tcant_overload_by_return_type.nim @@ -0,0 +1,9 @@ +discard """ +errormsg: "overloaded 'x' leads to ambiguous calls" +line: 9 +""" + +# bug #6393 + +proc x(): int = 7 +proc x(): string = "strange" |