Skip to content
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

Test LanguageFeatures/nnbd/generics_A01_t07 needs update #622

Closed
crelier opened this issue Apr 27, 2020 · 0 comments
Closed

Test LanguageFeatures/nnbd/generics_A01_t07 needs update #622

crelier opened this issue Apr 27, 2020 · 0 comments
Assignees

Comments

@crelier
Copy link

crelier commented Apr 27, 2020

dynamic i = null;

Returning i(i.e. null) from this function is not correct, since the return type is expected to be non-nullable:

T test4<T>(T t) {
  Expect.equals(typeOf<int>(), T);
  return i;
}

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