| Index: tests/language_strong/generic_methods_overriding_test.dart
|
| diff --git a/tests/language_strong/generic_methods_overriding_test.dart b/tests/language_strong/generic_methods_overriding_test.dart
|
| index 2de07fc2576d3628043e40e6acdb545afb1850eb..2ef1def02b8ed3a576e83a9b29729e81f3537953 100644
|
| --- a/tests/language_strong/generic_methods_overriding_test.dart
|
| +++ b/tests/language_strong/generic_methods_overriding_test.dart
|
| @@ -20,13 +20,13 @@ class C {
|
| }
|
|
|
| class D extends C {
|
| - String fun<T extends X>(T t) => "D"; /// 01: compile-time error
|
| - String fun<T extends Y>(T t) => "D"; /// 02: ok
|
| + String fun<T extends X>(T t) => "D"; //# 01: compile-time error
|
| + String fun<T extends Y>(T t) => "D"; //# 02: ok
|
| }
|
|
|
| class E extends C {
|
| - String fun<T>(Y y) => "E"; /// 03: compile-time error
|
| - String fun<T extends Y>(Y y) => "E"; /// 04: ok
|
| + String fun<T>(Y y) => "E"; //# 03: compile-time error
|
| + String fun<T extends Y>(Y y) => "E"; //# 04: ok
|
| }
|
|
|
| class F extends C {
|
| @@ -36,8 +36,8 @@ class F extends C {
|
|
|
| String fun<T extends Y>(T t) {
|
| if (t is Z) {
|
| - return this.foobar(t as Z); /// 05: ok
|
| - return this.foobar(t); /// 06: ok
|
| + return this.foobar(t as Z); //# 05: ok
|
| + return this.foobar(t); //# 06: ok
|
| }
|
| return "FY";
|
| }
|
| @@ -53,10 +53,10 @@ main() {
|
| F f = new F();
|
|
|
| Expect.equals(c.fun<Y>(y), "C");
|
| - Expect.equals(d.fun<Y>(y), "D"); /// 02: continued
|
| - Expect.equals(e.fun<Y>(y), "E"); /// 04: continued
|
| - Expect.equals(f.fun<Y>(y), "FY"); /// 05: continued
|
| - Expect.equals(f.fun<Z>(z), "FZ"); /// 05: continued
|
| - Expect.equals(f.fun<Y>(y), "FY"); /// 06: continued
|
| - Expect.equals(f.fun<Z>(z), "FZ"); /// 06: continued
|
| + Expect.equals(d.fun<Y>(y), "D"); //# 02: continued
|
| + Expect.equals(e.fun<Y>(y), "E"); //# 04: continued
|
| + Expect.equals(f.fun<Y>(y), "FY"); //# 05: continued
|
| + Expect.equals(f.fun<Z>(z), "FZ"); //# 05: continued
|
| + Expect.equals(f.fun<Y>(y), "FY"); //# 06: continued
|
| + Expect.equals(f.fun<Z>(z), "FZ"); //# 06: continued
|
| }
|
|
|