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
class Foo {
final Bar<Foo> bar = const Bar<Foo>();
}
class Bar<T extends Foo> {
const Bar();
}
main() {
print(new Foo());
}
generic.dart:2:24: error: non constant field must be initialized in constructor
final Bar<Foo> bar = const Bar<Foo>();
^^^^^^^^^^^^^^^^
compilation failed with 1 errors
The text was updated successfully, but these errors were encountered:
class Foo {
final Bar<Foo> bar = const Bar<Foo>();
}
class Bar<T extends Foo> {
const Bar();
}
main() {
print(new Foo());
}
generic.dart:2:24: error: non constant field must be initialized in constructor
final Bar<Foo> bar = const Bar<Foo>();
^^^^^^^^^^^^^^^^
compilation failed with 1 errors
The text was updated successfully, but these errors were encountered: