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)
@Araq Should https://github.com/nim-lang/Nim/commit/13c6037fd4119fbc67b31524bfb271652cc3df84 be merged into devel?
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.
Most helpful comment
Well, I want to implement return type overloading eventually. Should we track this as a separate feature issue?