You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler (dart2js) fails to compile the program below (which I'll add as dart/tests/language/closure_with_super_send_test.dart in a CL later today).
The compiler (dart2js) fails to compile the program below (which I'll add as dart/tests/language/closure_with_super_send_test.dart in a CL later today).
The compiler reports:
tests/language/closure_with_super_send_test.dart:14:3: internal error: Cannot find value parameter(this)
test() {
^^^^
Error: Compilation failed.
class Super {
m() => "super";
}
class Sub extends Super {
m() => "sub";
test() {
var x;
[0].forEach((e) => x = super.m());
return x;
}
}
main() {
Expect.equals("super", new Sub().test());
Expect.equals("super", new Super().m());
Expect.equals("sub", new Sub().m());
}
The text was updated successfully, but these errors were encountered: