[Issue 8372] New: -property is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 10 13:13:46 PDT 2012


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

           Summary: -property is broken
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2012-07-10 13:13:45 PDT ---
The following code fails to compile with DMD 2.059 -property:

@property int delegate() foo(){ return ()=>2; }
@property int bar(){ return 2; }
int baz(){ return 2; }

static assert(foo()==2);
static assert(!is(typeof(bar())));
static assert(baz==2);

All static assertions should compile and pass.

-- 
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