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

Unified Diff: tests/language/type_variable_bounds4_test.dart

Issue 2770063002: Revert "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
« no previous file with comments | « tests/language/type_variable_bounds3_test.dart ('k') | tests/language/type_variable_bounds_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_variable_bounds4_test.dart
diff --git a/tests/language/type_variable_bounds4_test.dart b/tests/language/type_variable_bounds4_test.dart
index 46a154cfd6023b2d8570d83c61500ef13c6f7850..1275310dec39018d88721c0bd684089acf9377ab 100644
--- a/tests/language/type_variable_bounds4_test.dart
+++ b/tests/language/type_variable_bounds4_test.dart
@@ -4,17 +4,13 @@
// 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() {
@@ -51,6 +47,7 @@ void test(bool expectTypeError, f()) {
}
}
+
void main() {
test(false, () => new A<int>());
test(false, () => new B<int>());
@@ -69,4 +66,4 @@ void main() {
test(true, () => c.newA()); //# 01: continued
test(true, () => c.newB()); //# 01: continued
test(true, () => c.newC()); //# 01: continued
-}
+}
« no previous file with comments | « tests/language/type_variable_bounds3_test.dart ('k') | tests/language/type_variable_bounds_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698