Bug 12688 – Strange error if function call is in parentheses
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-01T10:49:00Z
Last change time
2015-03-25T05:08:31Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
temtaime
Comments
Comment #0 by temtaime — 2014-05-01T10:49:20Z
import std.stdio;
struct S {
int foo() @property { return 1; }
}
void main() {
S s;
s.foo.writeln; // ok
(s.foo).writeln; // Error: need 'this' for 'foo' of type '@property int()'
}