| Index: pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| diff --git a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| index 2106dba5b3c11734082b4c4a04c12054d27f99b5..663ee78c3cde942090a4776e3015e8d81a952595 100644
|
| --- a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| +++ b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| @@ -1629,8 +1629,18 @@ main() {
|
|
|
| // TODO(jmesserly): we should change how this inference works.
|
| // For now this test will cover what we use.
|
| - // TODO(jmesserly): it looks like we lost our "infer JS builtin" test in
|
| - // a bad merge. Restore it.
|
| + test('infer JS builtin', () {
|
| + checkFile('''
|
| + import 'dart:_foreign_helper' show JS;
|
| + main() {
|
| + String x = /*severe:STATIC_TYPE_ERROR*/JS('int', '42');
|
| + var y = JS('String', '"hello"');
|
| + y = "world";
|
| + y = /*severe:STATIC_TYPE_ERROR*/42;
|
| + }
|
| + ''');
|
| + });
|
| +
|
|
|
| test('inferred generic instantiation', () {
|
| checkFile('''
|
|
|