| Index: tests/language/super_no_such_method5_test.dart
|
| diff --git a/tests/language/type_variable_closure3_test.dart b/tests/language/super_no_such_method5_test.dart
|
| similarity index 52%
|
| copy from tests/language/type_variable_closure3_test.dart
|
| copy to tests/language/super_no_such_method5_test.dart
|
| index ecb1c39e82ed81cc01dd061dca2b5070890f985b..fba8087b27f0d37b4f18dcd4f03d8500e43ac8d4 100644
|
| --- a/tests/language/type_variable_closure3_test.dart
|
| +++ b/tests/language/super_no_such_method5_test.dart
|
| @@ -2,17 +2,16 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -import "package:expect/expect.dart";
|
| +import 'package:expect/expect.dart';
|
|
|
| -class A<T> {}
|
| +class A {
|
| + noSuchMethod(im) => 42;
|
| +}
|
|
|
| -class C<T> {
|
| - a() {
|
| - return () => new A<T>();
|
| - }
|
| +class B extends Object with A {
|
| + foo() => super.foo(); /// 01: static type warning
|
| }
|
|
|
| main() {
|
| - Expect.isTrue(new C<int>().a()() is A<int>);
|
| - Expect.isFalse(new C<int>().a()() is A<String>);
|
| -}
|
| + Expect.equals(42, new B().foo()); /// 01: continued
|
| +}
|
|
|