[Issue 2367] New: Overloading error

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat Sep 20 13:42:33 PDT 2008


<d-bugmail at puremagic.com> wrote in message 
news:bug-2367-3 at http.d.puremagic.com/issues/...
> http://d.puremagic.com/issues/show_bug.cgi?id=2367
>
>           Summary: Overloading error
>           Product: D
>           Version: unspecified
>          Platform: PC
>        OS/Version: Linux
>            Status: NEW
>          Severity: normal
>          Priority: P2
>         Component: DMD
>        AssignedTo: bugzilla at digitalmars.com
>        ReportedBy: andrei at metalanguage.com
>
>
> The following code does not compile:
>
> struct S {
>    void foo(in char[] s) {}
>    void foo(in dchar[] s) {}
> }
>
> void main(string[] args) {
>    S s;
>    s.foo("a");
> }
>
> The second overload should not even be considered.

Testing, testing. 




More information about the Digitalmars-d-bugs mailing list