Default constructors for instantiable interfaces #2893
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-not-planned
Closed as we don't intend to take action on the reported issue
type-enhancement
A request for a change that isn't a bug
Milestone
This issue was originally filed by @seaneagan
Instantiable interfaces (those with a default class) should get a default constructor when they do not declare any, just like classes. For example, the following should be allowed:
interface Foo default _Foo {}
class _Foo implements Foo {}
main() => new Foo();
The text was updated successfully, but these errors were encountered: