Open
Description
The following test snippet passes (throws) in DDC/analyzer but doesn't emit an error in the VM:
import "expect.dart";
class C {
void Function() call = () {};
}
main() {
C c = new C();
dynamic d = c;
var lambda_okay = () => d.call();
var lambda_error = () => d();
lambda_okay();
Expect.throws(lambda_error);
}
Ditto for when call
is a getter. From what I could find, CFE doesn't provide the backends a way to disambiguate the two cases.