[Issue 5010] Error messages for properties could be improved

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 12 09:33:38 PST 2012


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


Adrian Matoga <epi at atari8.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |epi at atari8.info


--- Comment #1 from Adrian Matoga <epi at atari8.info> 2012-12-12 09:33:35 PST ---
I'd add also the following:

struct A
{
    @property void foo(uint x);
}

void main()
{
    A a;
    a.foo = "bar"; // (1)
}


(1) causes "Error: not a property a.foo", which may look obvious here, but gets
confusing with more complex types.

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