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

Unified Diff: tests/compiler/dart2js/type_variable_bound_test.dart

Issue 2990223002: Reformat untouched files. (Closed)
Patch Set: Created 3 years, 4 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/compiler/dart2js/type_mask2_test.dart ('k') | tests/compiler/dart2js/union_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_variable_bound_test.dart
diff --git a/tests/compiler/dart2js/type_variable_bound_test.dart b/tests/compiler/dart2js/type_variable_bound_test.dart
index ed2d150c631e44973e78a8a4cd22c0616069f230..c5d25f635c48fad3f4badc74d8f2441affe8e360 100644
--- a/tests/compiler/dart2js/type_variable_bound_test.dart
+++ b/tests/compiler/dart2js/type_variable_bound_test.dart
@@ -164,20 +164,17 @@ void main() {
}
Future test6() {
- return test(
- r"""
+ return test(r"""
class A<T extends num> {}
void main() {
new A<String>();
}
-""",
- warnings: MessageKind.INVALID_TYPE_VARIABLE_BOUND);
+""", warnings: MessageKind.INVALID_TYPE_VARIABLE_BOUND);
}
Future test7() {
- return test(
- r"""
+ return test(r"""
class A<T extends num> {}
class B<T> extends A<T> {} // Warning produced here.
@@ -185,8 +182,7 @@ void main() {
new B(); // No warning produced here.
new B<String>(); // No warning produced here.
}
-""",
- warnings: MessageKind.INVALID_TYPE_VARIABLE_BOUND);
+""", warnings: MessageKind.INVALID_TYPE_VARIABLE_BOUND);
}
Future test8() {
@@ -217,8 +213,7 @@ void main() {
}
Future test9() {
- return test(
- r"""
+ return test(r"""
class B<T extends B<T>> {}
class C<T extends B<T>> extends B<T> {}
class D<T extends C<T>> extends C<T> {}
@@ -229,11 +224,10 @@ void main() {
new D<B<F>>(); // Warning: B<F> is not a subtype of C<T>.
new E<D<F>>(); // Warning: E<F> is not a subtype of E<T>.
}
-""",
- warnings: [
- MessageKind.INVALID_TYPE_VARIABLE_BOUND,
- MessageKind.INVALID_TYPE_VARIABLE_BOUND
- ]);
+""", warnings: [
+ MessageKind.INVALID_TYPE_VARIABLE_BOUND,
+ MessageKind.INVALID_TYPE_VARIABLE_BOUND
+ ]);
}
Future test10() {
@@ -254,8 +248,7 @@ main() {
// TODO(het): The error is reported twice because both the Dart and JS constant
// compilers are run on the const constructor, investigate why.
Future test11() {
- return test(
- r"""
+ return test(r"""
class A {
const A();
}
@@ -269,8 +262,7 @@ class Test<T extends A> {
main() {
print(const Test<B>());
}
-""",
- errors: [MessageKind.NOT_ASSIGNABLE, MessageKind.NOT_ASSIGNABLE]);
+""", errors: [MessageKind.NOT_ASSIGNABLE, MessageKind.NOT_ASSIGNABLE]);
}
main() {
« no previous file with comments | « tests/compiler/dart2js/type_mask2_test.dart ('k') | tests/compiler/dart2js/union_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698