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

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

Issue 2963703002: Add type inference of annotations. (Closed)
Patch Set: Created 3 years, 6 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/downwards_inference_annotations_class_members.dart
diff --git a/pkg/front_end/testcases/inference/downwards_inference_annotations.dart b/pkg/front_end/testcases/inference/downwards_inference_annotations_class_members.dart
similarity index 60%
copy from pkg/front_end/testcases/inference/downwards_inference_annotations.dart
copy to pkg/front_end/testcases/inference/downwards_inference_annotations_class_members.dart
index fd31916c8fdba60cc4e6fb865ba35525d4a952b5..37db38e18409d533bc3e2b1cebce17f0ae7f8d30 100644
--- a/pkg/front_end/testcases/inference/downwards_inference_annotations.dart
+++ b/pkg/front_end/testcases/inference/downwards_inference_annotations_class_members.dart
@@ -7,11 +7,17 @@ library test;
class Foo {
const Foo(List<String> l);
- const Foo.named(List<String> l);
}
-@Foo(/*@typeArgs=String*/ const [])
-class Bar {}
+abstract class Bar {
+ @Foo(/*@typeArgs=String*/ const [])
+ Bar();
-@Foo.named(/*@typeArgs=String*/ const [])
-class Baz {}
+ @Foo(/*@typeArgs=String*/ const [])
+ var /*@topType=dynamic*/ x;
+
+ @Foo(/*@typeArgs=String*/ const [])
+ void f();
+}
+
+main() {}

Powered by Google App Engine
This is Rietveld 408576698