Skip to content

dartc allows default instantiation of an interface #868

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


Implicit default constructors should only be added to classes.

interface IA {}
main() {
  new IA();
}

However, if an interface declares a factory that is default instantiable, then it maybe desirable to synthesize a default constructor for the interface as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions