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

Unified Diff: pkg/front_end/testcases/runtime_checks/contravariant_getter.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/contravariant_getter.dart
diff --git a/pkg/front_end/testcases/runtime_checks/contravariant_getter.dart b/pkg/front_end/testcases/runtime_checks/contravariant_getter.dart
index 9663bdb8107bc7367e8428314ca292afa8f4479a..34f68312fd4c9ebedb4fea9cbe4e5ee0a6ce542f 100644
--- a/pkg/front_end/testcases/runtime_checks/contravariant_getter.dart
+++ b/pkg/front_end/testcases/runtime_checks/contravariant_getter.dart
@@ -9,14 +9,13 @@ typedef void F<T>(T x);
class C<T> {
F<T> y;
- void f(T /*@checkFormal=semiSafe*/ value) {
- this.y /*@checkCall=interface(semiTyped:0)*/ (value);
+ void f(T /*@checkFormal=semiSafe*/ /*@checkInterface=semiTyped*/ value) {
+ this.y /*@callKind=closure*/ (value);
}
}
-void g(/*safe*/ C<num> c) {
- c. /*@checkReturn=(num) -> void*/ y /*@checkCall=interface(semiTyped:0)*/ (
- 1.5);
+void g(C<num> c) {
+ c. /*@checkReturn=(num) -> void*/ y /*@callKind=closure*/ (1.5);
}
void main() {}

Powered by Google App Engine
This is Rietveld 408576698