| Index: tests/compiler/dart2js_extra/16407_test.dart
|
| diff --git a/tests/language/call_type_literal_test.dart b/tests/compiler/dart2js_extra/16407_test.dart
|
| similarity index 64%
|
| copy from tests/language/call_type_literal_test.dart
|
| copy to tests/compiler/dart2js_extra/16407_test.dart
|
| index d24e778d445092d8950d97e38932784f5bcbcf0b..5f59ffc7f643648ab1a2d7c70800560ec0763207 100644
|
| --- a/tests/language/call_type_literal_test.dart
|
| +++ b/tests/compiler/dart2js_extra/16407_test.dart
|
| @@ -4,8 +4,13 @@
|
|
|
| import "package:expect/expect.dart";
|
|
|
| -class C { void a() {} }
|
| +// Regression test for Issue 16407.
|
|
|
| void main() {
|
| - Expect.throws(() => C().a(), (e) => e is NoSuchMethodError); /// 01: static type warning
|
| + foo(null, true);
|
| + foo('x', false);
|
| }
|
| +
|
| +var foo = (x, result) {
|
| + Expect.equals(result, x is Null, '$x is Null');
|
| +};
|
|
|