[Issue 3474] PATCH: Implement opDollar for struct and class indexing	operations
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Nov 22 00:43:55 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=3474
--- Comment #13 from Don <clugdbug at yahoo.com.au> 2011-11-22 00:43:02 PST ---
Poor error message though. All the overloaded operators have bad errors:
struct S {
   void x() {}
   alias x opUnary;
}
void main() {
    S a;
    a = -a;
}
test.d(9): Error: a.x isn't a template
struct S {
   int x;
   alias x opUnary;
}
void main() {
    S a;
    a = -a;
}
test.d(9): Error: 'a' is not of arithmetic type, it is a S
-- 
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