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 language has changed so much since May that this bug is obsolete. However, there is a requirement to give an error for a factory constructor whose name does not start with the name of the enclosing class:
class Foo{
factory Bar.make(){return new Bar();} // compile-time error
}
Now, if no one ever calls this, you never compile it and that is ok. However, if it gets called, it is an error, If the compiler is used during development (as opposed to deployment) there needs to be a way to force everything to get compiled. Right now we rely on the analyzer for this.
This used to be a compile time error:
It is a static warning if M is not the name of the immediately enclosing class or the name of an interface in the enclosing lexical scope.
Once the typechecker reports this as a warning, the error can be removed from dart2js.
The text was updated successfully, but these errors were encountered: