On 4/20/15 2:50 PM, Jonathan M Davis via Digitalmars-d-learn wrote:
On Monday, April 20, 2015 18:35:34 dvic via Digitalmars-d-learn wrote:
Why is the compiler not complaining about defining 2 read
properties and it does
otherwise when using both of them?
Now, that is weird. I would fully expect something like
struct S
{
@property int foo() { return 7; }
@property string foo() { return "foo"; }
}
to result in an error, but for some reason, it doesn't (and it doesn't seem
to have anything to do with the fact that it's a property function).
There's an open bugzilla on this:
https://issues.dlang.org/show_bug.cgi?id=2789
-Steve