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

Unified Diff: pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart

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/null_literal_should_not_infer_as_bottom.dart
diff --git a/pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart b/pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart
index 194c9cf2f360d26e2e2cbc1027a6a698b795e6c2..d8699ea4c4993df624ec8457a2d8ad3ed953dd59 100644
--- a/pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart
+++ b/pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart
@@ -23,5 +23,6 @@ main() {
(/*info:DYNAMIC_INVOKE*/ h.foo());
foo(/*@returnType=int*/ (/*@type=Object*/ x) => null);
- foo(/*@returnType=<bottom>*/ (/*@type=Object*/ x) => throw "not implemented");
+ foo(/*@returnType=<BottomType>*/ (/*@type=Object*/ x) =>
+ throw "not implemented");
}

Powered by Google App Engine
This is Rietveld 408576698