| Index: tests/compiler/dart2js/type_checker_test.dart
|
| diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
|
| index 19539aef88aae31e5344bfa2e6c2807c3bd31bb4..d93b2d60f7bb5752557e173d99239547a7be7c41 100644
|
| --- a/tests/compiler/dart2js/type_checker_test.dart
|
| +++ b/tests/compiler/dart2js/type_checker_test.dart
|
| @@ -1554,8 +1554,8 @@ testTypePromotionHints() {
|
| infos: []);
|
|
|
| check('''
|
| - D d = new E();
|
| - if (d is E<int>) {
|
| + D<int> d = new E();
|
| + if (d is E) {
|
| var x = d.e;
|
| }''',
|
| warnings: [MessageKind.MEMBER_NOT_FOUND.warning],
|
| @@ -1563,8 +1563,8 @@ testTypePromotionHints() {
|
| infos: []);
|
|
|
| check('''
|
| - D d = new E();
|
| - if (d is E<int>) {
|
| + D<int> d = new E();
|
| + if (d is E) {
|
| var x = d.f; // Type promotion wouldn't help.
|
| }''',
|
| warnings: [MessageKind.MEMBER_NOT_FOUND.warning],
|
|
|