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

Unified Diff: test/checker/inferred_type_test.dart

Issue 1396993002: housecleaning: remove nonnullableTypes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 2 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 9dcde614418122481e680828a2b26a81993661ca..1178050f6c09019311ebded544d5831a3da63968 100644
--- a/test/checker/inferred_type_test.dart
+++ b/test/checker/inferred_type_test.dart
@@ -30,30 +30,6 @@ void main() {
'''
});
- testChecker('Error when declared type is `int` and assigned null.', {
- '/main.dart': '''
- test1() {
- int x = 3;
- x = /*severe:StaticTypeError*/null;
- }
- '''
- }, nonnullableTypes: <String>[
- 'int',
- 'double'
- ]);
-
- testChecker('Error when inferred type is `int` and assigned null.', {
- '/main.dart': '''
- test1() {
- var x = 3;
- x = /*severe:StaticTypeError*/null;
- }
- '''
- }, nonnullableTypes: <String>[
- 'int',
- 'double'
- ]);
-
testChecker('No error when declared type is `num` and assigned null.', {
'/main.dart': '''
test1() {

Powered by Google App Engine
This is Rietveld 408576698