Skip to content

co19/LanguageFeatures/Constructor-tear-offs/summary_A03_t04 issue #1153

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

Closed
eernstg opened this issue Aug 12, 2021 · 0 comments
Closed

co19/LanguageFeatures/Constructor-tear-offs/summary_A03_t04 issue #1153

eernstg opened this issue Aug 12, 2021 · 0 comments

Comments

@eernstg
Copy link
Member

eernstg commented Aug 12, 2021

[Edit] This is actually an open question, please wait for resolution of cf. dart-lang/language#1802.

Said test contains the expression List<int>.toString(), and expects it to be an invocation of the toString method on the Type instance denoted by List<int>. However, this section specifies that it must be considered to denote a constructor invocation, and hence it is a compile-time error because there is no constructor named List.toString.

The fix could be to use (List<int>).toString(), which seems to fit the intentions of the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant