Nim: A warning for unused but conflicting procs would be nice

Created on 17 Sep 2017  路  5Comments  路  Source: nim-lang/Nim

proc x(): int = 7
proc x(): string = "strange"

#var h: int = x() # does not compile
# but why is there no warning for the two procs?
# As they make no sense. (Reported by a gintro user)
Easy Error messages Showstopper

Most helpful comment

Well, I want to implement return type overloading eventually. Should we track this as a separate feature issue?

All 5 comments

Can't, it needs to be fixed slightly differently.

This is actually implemented, but doesn't work as expected. Since this is annoying me on a personal level, showstopper bug.

Well, I want to implement return type overloading eventually. Should we track this as a separate feature issue?

Return type overloading would be an RFC.

Was this page helpful?
0 / 5 - 0 ratings