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

Unified Diff: pkg/front_end/testcases/inference/static_method_tear_off.dart

Issue 2875103002: Exclude function name from function type annotations in front end type inference tests. (Closed)
Patch Set: Created 3 years, 7 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/inference/static_method_tear_off.dart
diff --git a/pkg/front_end/testcases/inference/static_method_tear_off.dart b/pkg/front_end/testcases/inference/static_method_tear_off.dart
index 74e6d8bdef10a1e3747c1c247e2e896ddb4d712c..7a8dfd9c70fb0e3f28673db4329a7de552e53d90 100644
--- a/pkg/front_end/testcases/inference/static_method_tear_off.dart
+++ b/pkg/front_end/testcases/inference/static_method_tear_off.dart
@@ -5,8 +5,12 @@
/*@testedFeatures=inference*/
library test;
-const /*@topType=C::f(String) -> int*/ v = C.f;
+const /*@topType=(String) -> int*/ v = C.f;
class C {
static int f(String s) => null;
}
+
+main() {
+ v;
+}

Powered by Google App Engine
This is Rietveld 408576698