Skip to content

Commit

Permalink
Revert #531 fix in pre-nnbd branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov committed May 6, 2020
1 parent f2bcf8a commit c57eda5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Language/Generics/class_A03_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ class C<T> {
check(expected) {
Expect.equals(expected, T);
}
check1() {
print(T.runtimeType);
}
}

main() {
Expand All @@ -43,7 +40,7 @@ main() {
(new C<dynamic>()).check(dynamic);
(new C<Null>()).check(Null);
(new C<Object>()).check(Object);
(new C<FutureOr>()).check(Object);
(new C<FutureOr>()).check(FutureOr);
(new C<Null>()).check(Null);
}

4 changes: 2 additions & 2 deletions Language/Generics/class_A03_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ main() {
(new C<A, C, C>()).check(A, C, C);
(new C<dynamic, dynamic, dynamic>()).check(dynamic, dynamic, dynamic);
(new C<Null, Null, Null>()).check(Null, Null, Null);
(new C<Object, List, FutureOr>()).check(Object, List, Object);
(new C<FutureOr, dynamic, dynamic>()).check(Object, dynamic, dynamic);
(new C<Object, List, FutureOr>()).check(Object, List, FutureOr);
(new C<FutureOr, dynamic, dynamic>()).check(FutureOr, dynamic, dynamic);
}

0 comments on commit c57eda5

Please sign in to comment.