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

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

Powered by Google App Engine
This is Rietveld 408576698