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

Unified Diff: tests/language/null_bottom_test.dart

Issue 2638183002: Issue 28027. Move Null to the bottom in the Analyzer. (Closed)
Patch Set: Fixes for review comments. Created 3 years, 11 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
« no previous file with comments | « tests/language/language_analyzer2.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/null_bottom_test.dart
diff --git a/tests/language/null_bottom_test.dart b/tests/language/null_bottom_test.dart
index bea4dab3750943c692612ce938a8a0c8ac2ad6bd..53e866a9ee74a320a15bd386401f40cf8a705c50 100644
--- a/tests/language/null_bottom_test.dart
+++ b/tests/language/null_bottom_test.dart
@@ -113,7 +113,7 @@ void testFunctionTypes() {
// If type promotion succeeds, the static type is int->Null, otherwise
// it's Null->int.
fun2(42); // Should not give a warning after type promotion.
- fun2(null).abs(); /// 03: static type warning, runtime error
+ fun2(null).abs(); /// 03: runtime error
}
}
@@ -125,9 +125,9 @@ class T1 {
}
class T2 extends T1 {
- Null foo(Null x) => null; /// 01: static type warning
+ Null foo(Null x) => null;
Null bar(Null x) => null;
- int baz(int x) => x; /// 02: static type warning
+ int baz(int x) => x;
int qux(int x) => x;
}
« no previous file with comments | « tests/language/language_analyzer2.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698