Index: pkg/front_end/testcases/inference/downwards_inference_annotations_locals_referring_to_locals.dart |
diff --git a/pkg/front_end/testcases/inference/downwards_inference_annotations.dart b/pkg/front_end/testcases/inference/downwards_inference_annotations_locals_referring_to_locals.dart |
similarity index 62% |
copy from pkg/front_end/testcases/inference/downwards_inference_annotations.dart |
copy to pkg/front_end/testcases/inference/downwards_inference_annotations_locals_referring_to_locals.dart |
index fd31916c8fdba60cc4e6fb865ba35525d4a952b5..9d389ca725bbe6f0c2a1c8d3dee5748df08887bb 100644 |
--- a/pkg/front_end/testcases/inference/downwards_inference_annotations.dart |
+++ b/pkg/front_end/testcases/inference/downwards_inference_annotations_locals_referring_to_locals.dart |
@@ -6,12 +6,14 @@ |
library test; |
class Foo { |
- const Foo(List<String> l); |
- const Foo.named(List<String> l); |
+ const Foo(dynamic l); |
} |
-@Foo(/*@typeArgs=String*/ const []) |
-class Bar {} |
+void test() { |
+ const /*@type=int*/ x = 0; |
-@Foo.named(/*@typeArgs=String*/ const []) |
-class Baz {} |
+ @Foo(/*@typeArgs=int*/ const [x]) |
+ var /*@type=dynamic*/ y; |
+} |
+ |
+main() {} |