Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: pkg/front_end/testcases/inference/coerce_bottom_and_null_types.dart.direct.expect

Issue 2886873005: Minor type inference fixes to do with null and bottom types. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {}

Powered by Google App Engine
This is Rietveld 408576698