[Issue 7050] New: Safety error message should include full function	names
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Dec  2 09:15:20 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7050
           Summary: Safety error message should include full function
                    names
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at klickverbot.at
--- Comment #0 from klickverbot <code at klickverbot.at> 2011-12-02 09:14:16 PST ---
Currently (DMD 2.057 Git, 887dda0ba),
---
struct Foo {
  this (int a) {}
}
@safe void foo() {
  auto f = Foo(3);
}
---
produces
---
Error: safe function 'foo' cannot call system function 'this'
---
.
The error message should include the type (i.e. Foo.this) so it is clear what
it refers to.
-- 
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