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

Unified Diff: test/checker/inferred_type_test.dart

Issue 977613002: Make int and double nullable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Optimize away some nonnull checks Created 5 years, 10 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: test/checker/inferred_type_test.dart
diff --git a/test/checker/inferred_type_test.dart b/test/checker/inferred_type_test.dart
index 0287b86e215209362671d7cc4f146f0fb2e4a606..553b2ada65ea1fcebbb09fcd192907eb9fc43888 100644
--- a/test/checker/inferred_type_test.dart
+++ b/test/checker/inferred_type_test.dart
@@ -42,7 +42,7 @@ main() {
x = /*warning:DownCastLiteral*/null;
}
'''
- });
+ }, nonnullableTypes: <String>['int', 'double']);
// Error when inferred type is `int` and assigned null.
testChecker({
@@ -52,7 +52,7 @@ main() {
x = /*warning:DownCastLiteral*/null;
}
'''
- });
+ }, nonnullableTypes: <String>['int', 'double']);
// No error when declared type is `num` and assigned null.
testChecker({

Powered by Google App Engine
This is Rietveld 408576698