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

Unified Diff: tests/language_strong/type_variable_bounds4_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 years, 9 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: tests/language_strong/type_variable_bounds4_test.dart
diff --git a/tests/language_strong/type_variable_bounds4_test.dart b/tests/language_strong/type_variable_bounds4_test.dart
index 1275310dec39018d88721c0bd684089acf9377ab..46a154cfd6023b2d8570d83c61500ef13c6f7850 100644
--- a/tests/language_strong/type_variable_bounds4_test.dart
+++ b/tests/language_strong/type_variable_bounds4_test.dart
@@ -4,13 +4,17 @@
// Test instantiation of object with malbounded types.
-class A<T
+class A<
+ T
extends num //# 01: static type warning
- > {}
+ > {}
+
class B<T> implements A<T> {}
-class C<T
+
+class C<
+ T
extends num //# 01: continued
- > implements B<T> {}
+ > implements B<T> {}
class Class<T> {
newA() {
@@ -47,7 +51,6 @@ void test(bool expectTypeError, f()) {
}
}
-
void main() {
test(false, () => new A<int>());
test(false, () => new B<int>());
@@ -66,4 +69,4 @@ void main() {
test(true, () => c.newA()); //# 01: continued
test(true, () => c.newB()); //# 01: continued
test(true, () => c.newC()); //# 01: continued
-}
+}

Powered by Google App Engine
This is Rietveld 408576698