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
Comment #1 by k.hara.pg — 2013-06-13T02:23:52Z
*** Issue 10349 has been marked as a duplicate of this issue. ***
Comment #2 by robert.schadek — 2024-12-13T17:59:32Z