Index: pkg/front_end/testcases/inference/coerce_bottom_and_null_types.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/coerce_bottom_and_null_types.dart.direct.expect b/pkg/front_end/testcases/inference/coerce_bottom_and_null_types.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..226fdcbf0c106c6bdcecbcd5ae0778e43692d6d0 |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/coerce_bottom_and_null_types.dart.direct.expect |
@@ -0,0 +1,22 @@ |
+library test; |
+import self as self; |
+import "dart:core" as core; |
+ |
+static method f() → dynamic { |
+ dynamic a = 0; |
+ dynamic b = null; |
+ dynamic c = throw "foo"; |
+ dynamic d = () → core::int => 0; |
+ dynamic e = () → dynamic => null; |
+ dynamic f = () → <BottomType>=> throw "foo"; |
+ dynamic g = () → dynamic { |
+ return 0; |
+ }; |
+ dynamic h = () → dynamic { |
+ return null; |
+ }; |
+ dynamic i = () → dynamic { |
+ return throw "foo"; |
+ }; |
+} |
+static method main() → dynamic {} |