Closed
Description
Example code:
class C {
noSuchMethod(m) => m;
}
main() {
var c = new C();
var r = (c.bar)();
print(r);
}
According to the spec, this should do the same as if "c.bar" had not been parenthesized. From the section "Function Expression Invocation": "If e_f is a property access expression, then i is treated as an ordinary method invocation". In this case "(c.bar)" is a property access. (Or is it, Gilad? Are parentheses not just grouping here?)