http://d.puremagic.com/issues/show_bug.cgi?id=9961

           Summary: Using UFCS properties suppress actual errors
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Kenji Hara <[email protected]> 2013-04-19 01:19:08 PDT ---
The second use of foo must also print actual errors during instantiation.

void foo(T)(T) { int x = ""; }
void main()
{
    100.foo();
    // test.d(1): Error: cannot implicitly convert expression ("") of type
string to int
    // test.d(4): Error: template instance test.foo!(int) error instantiating

    'a'.foo;
    // test.d(8): Error: no property 'foo' for type 'char'
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to