| Index: pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_tear_off.dart
|
| diff --git a/pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_tear_off.dart b/pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_tear_off.dart
|
| index e48b38b4b13df11bf234d75260a15b99a45a220a..84d1e07fd55edcbb15f64d13778d4b3097fb0d71 100644
|
| --- a/pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_tear_off.dart
|
| +++ b/pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_tear_off.dart
|
| @@ -10,8 +10,9 @@ typedef void F<T>(T x);
|
| typedef U G<T, U>(T x);
|
|
|
| class C<T> {
|
| - void f1(T /*@checkFormal=semiSafe*/ x) {}
|
| - T f2(List<T> /*@checkFormal=semiSafe*/ x) => x.first;
|
| + void f1(T /*@checkFormal=semiSafe*/ /*@checkInterface=semiTyped*/ x) {}
|
| + T f2(List<T> /*@checkFormal=semiSafe*/ /*@checkInterface=semiTyped*/ x) =>
|
| + x.first;
|
| }
|
|
|
| F<num> g1(C<num> c) {
|
| @@ -20,7 +21,7 @@ F<num> g1(C<num> c) {
|
|
|
| void g2(C<int> c, Object x) {
|
| F<Object> f = g1(c) as F<Object>;
|
| - f /*@checkCall=interface(semiTyped:0)*/ (x);
|
| + f /*@callKind=closure*/ (x);
|
| }
|
|
|
| G<List<num>, num> g3(C<num> c) {
|
| @@ -29,7 +30,7 @@ G<List<num>, num> g3(C<num> c) {
|
|
|
| void test() {
|
| var x = g1(new C<int>());
|
| - x /*@checkCall=interface(semiTyped:0)*/ (1.5);
|
| + x /*@callKind=closure*/ (1.5);
|
| g3(new C<int>());
|
| }
|
|
|
|
|