www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8000] New: [UFCS] property in WithStatement

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8000

           Summary: [UFCS] property in WithStatement
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com



This code doesn't work!

---------- main.d -----------
struct A
{
}

 property void foo(ref A a, int b)
{
}

void main()
{
    A a;
    a.foo = 1; // OK
    with (a)
    {
        foo = 2; // main.d(15): Error: not a property foo
    }
}

----------------------------
$ dmd -run main
main.d(15): Error: not a property foo

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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 28 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8000


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alanb ucora.com



*** Issue 10349 has been marked as a duplicate of this issue. ***

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