Skip to content

Test LanguageFeatures/nnbd/generics_A01_t07 needs update #622

Closed
@crelier

Description

@crelier

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;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions