| Index: tests/compiler/dart2js/cpa_inference_test.dart
|
| diff --git a/tests/compiler/dart2js/cpa_inference_test.dart b/tests/compiler/dart2js/cpa_inference_test.dart
|
| index ae905932a7237ccafc2750dfc47561f51a930cfb..2e8e52942e18c06224d4844230162db43b84f26c 100644
|
| --- a/tests/compiler/dart2js/cpa_inference_test.dart
|
| +++ b/tests/compiler/dart2js/cpa_inference_test.dart
|
| @@ -1023,6 +1023,17 @@ testDynamicIsAbsorbing() {
|
| result.checkNodeHasUnknownType('x');
|
| }
|
|
|
| +testIsCheck() {
|
| + final String source = r"""
|
| + main () {
|
| + var x = (1 is String);
|
| + x;
|
| + }
|
| + """;
|
| + AnalysisResult result = analyze(source);
|
| + result.checkNodeHasType('x', [result.bool]);
|
| +}
|
| +
|
| void main() {
|
| testDynamicBackDoor();
|
| testLiterals();
|
| @@ -1063,4 +1074,5 @@ void main() {
|
| testLists();
|
| testListWithCapacity();
|
| testEmptyList();
|
| + testIsCheck();
|
| }
|
|
|