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
abstract class A {
void test();
}
class B extends A {
void test() {
super.test; // code in question
}
}
Dart analyzer does not produce any static errors, but the CFE is currently issuing an error indicating that the class A does not define a getter named test. I couldn't find any place in the spec that would indicate that this should be an error. In particular, section 16.19.2 "Super Getter Access and Method Closurization" appears to indicate that this should be valid.
Should this code produce an error?
If so, then I'll open an analyzer issue. If not, then I'll open a CFE issue.
The text was updated successfully, but these errors were encountered:
bwilkerson
added
the
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
label
Jul 23, 2018
I have the following code:
Dart analyzer does not produce any static errors, but the CFE is currently issuing an error indicating that the class
A
does not define a getter namedtest
. I couldn't find any place in the spec that would indicate that this should be an error. In particular, section 16.19.2 "Super Getter Access and Method Closurization" appears to indicate that this should be valid.Should this code produce an error?
If so, then I'll open an analyzer issue. If not, then I'll open a CFE issue.
The text was updated successfully, but these errors were encountered: