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

Unified Diff: pkg/front_end/testcases/inference/block_bodied_lambdas_returns.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/block_bodied_lambdas_returns.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_returns.dart.strong.expect b/pkg/front_end/testcases/inference/block_bodied_lambdas_returns.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..b0ec67b986303fd2c09b469e838cb4f3488ee31d
--- /dev/null
+++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_returns.dart.strong.expect
@@ -0,0 +1,88 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static method main() → dynamic {
+ () → core::Null a = () → core::Null {};
+ () → core::Null b = () → core::Null {
+ return;
+ };
+ () → core::Null c = () → core::Null {
+ return null;
+ };
+ () → core::int d = () → core::int {
+ return 0;
+ };
+ (core::bool) → core::Null e = (core::bool b) → core::Null {
+ if(b) {
+ return;
+ }
+ else {
+ return;
+ }
+ };
+ (core::bool) → core::Null f = (core::bool b) → core::Null {
+ if(b) {
+ return;
+ }
+ else {
+ return null;
+ }
+ };
+ (core::bool) → core::int g = (core::bool b) → core::int {
+ if(b) {
+ return;
+ }
+ else {
+ return 0;
+ }
+ };
+ (core::bool) → core::Null h = (core::bool b) → core::Null {
+ if(b) {
+ return null;
+ }
+ else {
+ return;
+ }
+ };
+ (core::bool) → core::Null i = (core::bool b) → core::Null {
+ if(b) {
+ return null;
+ }
+ else {
+ return null;
+ }
+ };
+ (core::bool) → core::int j = (core::bool b) → core::int {
+ if(b) {
+ return null;
+ }
+ else {
+ return 0;
+ }
+ };
+ (core::bool) → core::int k = (core::bool b) → core::int {
+ if(b) {
+ return 0;
+ }
+ else {
+ return;
+ }
+ };
+ (core::bool) → core::int l = (core::bool b) → core::int {
+ if(b) {
+ return 0;
+ }
+ else {
+ return null;
+ }
+ };
+ (core::bool) → core::int m = (core::bool b) → core::int {
+ if(b) {
+ return 0;
+ }
+ else {
+ return 0;
+ }
+ };
+}

Powered by Google App Engine
This is Rietveld 408576698