fixes #6393
This commit is contained in:
parent
85ea9593b3
commit
14e496fab0
3 changed files with 12 additions and 8 deletions
9
tests/errmsgs/tcant_overload_by_return_type.nim
Normal file
9
tests/errmsgs/tcant_overload_by_return_type.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
errormsg: "overloaded 'x' leads to ambiguous calls"
|
||||
line: 9
|
||||
"""
|
||||
|
||||
# bug #6393
|
||||
|
||||
proc x(): int = 7
|
||||
proc x(): string = "strange"
|
||||
Loading…
Add table
Add a link
Reference in a new issue