[Issue 12454] Return type inference does not work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 24 14:03:35 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12454
--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-24 22:03:34 CET ---
(In reply to comment #3)
> (In reply to comment #2)
> > D does not support return type overloading. I'm not sure whether this is
> > mentioned in the spec though. Others can chime in.
>
> In that case, it should not be possible to define two functions with just ret
> type difference.
Currently the compiler doesn't implement these checks, but arguably it should.
For example the following will issue a linker error:
-----
class Foo
{
void test() { }
void test() { }
}
void main()
{
}
-----
Implementing checks is an enhancement that is already filed somewhere in
bugzilla.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list