Skip to content

co19/LanguageFeatures/Generic-functions-as-type-args/typedef2_A01_t14 needs parameter name #1080

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 Apr 15, 2021 · 2 comments
Assignees

Comments

@eernstg
Copy link
Member

eernstg commented Apr 15, 2021

Said test contains a declaration like this:

T Function<T>() testme1(T Function<T>()) => throw "Hello";
//                                     ^ Here

It is not expected to be an error, but there is no parameter name, so the parameter name should be added.

@eernstg
Copy link
Member Author

eernstg commented Apr 15, 2021

typedef2_A01_t12.dart has the same problem, and so does typedef2_A01_t11.dart, typedef2_A01_t16.dart, typedef2_A01_t13.dart, typedef2_A01_t14.dart, typedef2_A01_t02.dart, typedef2_A01_t08.dart, typedef2_A01_t09.dart, typedef2_A01_t10.dart, typedef2_A01_t20.dart, and typedef2_A01_t15.dart. Please check for similar tests with the same issue (say, tests added in the same CL, or as part of the same task).

@iarkh
Copy link
Contributor

iarkh commented Apr 15, 2021

Parameter name issue has been fixed.
Seems like these tests need more changes according the Issue 45718 evaluation.

@iarkh iarkh self-assigned this Apr 15, 2021
@iarkh iarkh closed this as completed in 255172a Apr 16, 2021
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

2 participants