New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If class is referenced only via undefined named constructor, it is not emitted to output #6895
Comments
This comment was originally written by antonm@google.com but why if you cannot instantiate it? And there is no other references? |
This comment was originally written by smok@google.com Why we should emit it? Different error type. Compile-time unresolved reference in case of "new Unresolved()" and NoSuchMethodError in case of "new A.unresolved();" |
This comment was originally written by antonm@google.com Thanks a lot for explanations. That's a crap, I must say. |
Added this to the M3 milestone. |
Feel free to take ownership again if you plan on working on this, Roman. Removed the owner. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
This issue was originally filed by smok@google.com
Example (from tests/co19/src/Language/11_Expressions/11_Instance_Creation/1_New_A03_t01.dart):
class A{}
main() {
new A.named();
}
Result:
main(){new p_Unresolved();}
Or should 'A' get into 'instantiated classes' collection?
The text was updated successfully, but these errors were encountered: