[Issue 7722] New: Refuse normal functions to be used as properties
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 18 05:48:31 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7722
Summary: Refuse normal functions to be used as properties
Product: D
Version: unspecified
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: accepts-invalid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2012-03-18 05:48:46 PDT ---
I think this is a regression.
It was introduced by fixing bug 7670. See that for more info.
This code compiles with no errors with DMD 2.059head using the -property
switch:
class Foo {}
void spam(Foo f) {}
void main() {
auto f = new Foo;
f.spam;
}
--
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