Bug 8000 – [UFCS] property in WithStatement

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-28T11:18:13Z
Last change time
2024-12-13T17:59:32Z
Assigned to
No Owner
Creator
SHOO
Moved to GitHub: dmd#18433 →

Comments

Comment #0 by zan77137 — 2012-04-28T11:18:13Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18433 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB