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

Unified Diff: pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_tear_off.dart

Issue 3010613003: Simplify annotations in runtime check tests. (Closed)
Patch Set: Address code review comment Created 3 years, 4 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: 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>());
}

Powered by Google App Engine
This is Rietveld 408576698