Index: pkg/front_end/testcases/inference/no_error_when_declared_type_is_num_and_assigned_null.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/no_error_when_declared_type_is_num_and_assigned_null.dart.direct.expect b/pkg/front_end/testcases/inference/no_error_when_declared_type_is_num_and_assigned_null.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f13096382eda90383e6dffdd90f2e09ac06e518b |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/no_error_when_declared_type_is_num_and_assigned_null.dart.direct.expect |
@@ -0,0 +1,11 @@ |
+library test; |
+import self as self; |
+import "dart:core" as core; |
+ |
+static method test1() → dynamic { |
+ core::num x = 3; |
+ x = null; |
+} |
+static method main() → dynamic { |
+ self::test1(); |
+} |