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

Unified Diff: tests/language/type_variable_bounds4_test.dart

Issue 2765693002: Update all tests (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/type_variable_bounds4_test.dart
diff --git a/tests/language/type_variable_bounds4_test.dart b/tests/language/type_variable_bounds4_test.dart
index 3581d6f5780234c9143db6b3a646032cece7a3ad..1275310dec39018d88721c0bd684089acf9377ab 100644
--- a/tests/language/type_variable_bounds4_test.dart
+++ b/tests/language/type_variable_bounds4_test.dart
@@ -5,22 +5,22 @@
// Test instantiation of object with malbounded types.
class A<T
- extends num /// 01: static type warning
+ extends num //# 01: static type warning
> {}
class B<T> implements A<T> {}
class C<T
- extends num /// 01: continued
+ extends num //# 01: continued
> implements B<T> {}
class Class<T> {
newA() {
- new A<T>(); /// 01: continued
+ new A<T>(); //# 01: continued
}
newB() {
- new B<T>(); /// 01: continued
+ new B<T>(); //# 01: continued
}
newC() {
- new C<T>(); /// 01: continued
+ new C<T>(); //# 01: continued
}
}
@@ -53,9 +53,9 @@ void main() {
test(false, () => new B<int>());
test(false, () => new C<int>());
- test(true, () => new A<String>()); /// 01: continued
- test(true, () => new B<String>()); /// 01: continued
- test(true, () => new C<String>()); /// 01: continued
+ test(true, () => new A<String>()); //# 01: continued
+ test(true, () => new B<String>()); //# 01: continued
+ test(true, () => new C<String>()); //# 01: continued
var c = new Class<int>();
test(false, () => c.newA());
@@ -63,7 +63,7 @@ void main() {
test(false, () => c.newC());
c = new Class<String>();
- test(true, () => c.newA()); /// 01: continued
- test(true, () => c.newB()); /// 01: continued
- test(true, () => c.newC()); /// 01: continued
+ 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