[Issue 11680] New: user defined attributes for type inference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 3 20:59:05 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11680

           Summary: user defined attributes for type inference
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          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-12-03 20:59:03 PST ---
Test case:

enum uda;
@uda auto global1 = 1;  // OK
@uda global1 = 1;   // NG
@uda auto foo() {}  // OK
@uda foo() {}   // NG

test.d(3): Error: no identifier for declarator global1
test.d(5): Error: function declaration without return type. (Note that
constructors are always named 'this')
test.d(5): Error: no identifier for declarator foo()

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


More information about the Digitalmars-d-bugs mailing list