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

Unified Diff: test/checker/inferred_type_test.dart

Issue 1266483003: format with dart_style 0.2.0-rc.3 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 | « test/checker/checker_test.dart ('k') | test/checker/self_host_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/checker/inferred_type_test.dart
diff --git a/test/checker/inferred_type_test.dart b/test/checker/inferred_type_test.dart
index 387b597ce2c827b1f9dd7736764b70a0c7dcf09d..bc65f56e396332707628fdf2a5df3591d9fefd0a 100644
--- a/test/checker/inferred_type_test.dart
+++ b/test/checker/inferred_type_test.dart
@@ -40,7 +40,10 @@ void main() {
x = /*severe:StaticTypeError*/null;
}
'''
- }, nonnullableTypes: <String>['int', 'double']);
+ }, nonnullableTypes: <String>[
+ 'int',
+ 'double'
+ ]);
});
test('Error when inferred type is `int` and assigned null.', () {
@@ -51,7 +54,10 @@ void main() {
x = /*severe:StaticTypeError*/null;
}
'''
- }, nonnullableTypes: <String>['int', 'double']);
+ }, nonnullableTypes: <String>[
+ 'int',
+ 'double'
+ ]);
});
test('No error when declared type is `num` and assigned null.', () {
@@ -1516,11 +1522,13 @@ void main() {
}, inferDownwards: true);
});
- test('inferred initializing formal checks default value', () => testChecker({
- '/main.dart': '''
+ test(
+ 'inferred initializing formal checks default value',
+ () => testChecker({
+ '/main.dart': '''
class Foo {
var x = 1;
Foo([this.x = /*severe:StaticTypeError*/"1"]);
}'''
- }));
+ }));
}
« no previous file with comments | « test/checker/checker_test.dart ('k') | test/checker/self_host_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698