Index: pkg/front_end/testcases/inference/type_promotion_simple.dart |
diff --git a/pkg/front_end/testcases/inference/type_promotion_simple.dart b/pkg/front_end/testcases/inference/type_promotion_simple.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4d0cfc0d4ce4a5b54152b207a33a029d3eeaed55 |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/type_promotion_simple.dart |
@@ -0,0 +1,11 @@ |
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE.md file. |
+ |
+/*@testedFeatures=inference*/ |
+main() { |
+ num n = null; |
+ if (/*@promotedType=none*/ n is int) { |
+ var /*@type=dart.core::int*/ i = /*@promotedType=dart.core::int*/ n; |
+ } |
+} |