[Issue 9961] New: Using UFCS properties suppress actual errors
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Apr 19 01:19:09 PDT 2013
    
    
  
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: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list