Chromium Code Reviews| Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
| diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
| index 3a23360d1214eb4c20e42c4b1882d58bb64f4e50..467a140b7a80ceb86c3f17b6911e6598de8896e4 100644 |
| --- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
| +++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
| @@ -5449,4 +5449,19 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase { |
| ""); |
| assertErrors(result.getErrors()); |
| } |
| + |
| + /** |
| + * <p> |
| + * http://code.google.com/p/dart/issues/detail?id=6491 |
| + */ |
| + public void test_annotationOnGetter() throws Exception { |
| + AnalyzeLibraryResult result = analyzeLibrary( |
| + "// filler filler filler filler filler filler filler filler filler filler", |
| + "var myAnnotation = 0;", |
|
Brian Wilkerson
2012/11/02 21:32:40
nit: "var" --> "const"
|
| + "class A {", |
| + " @myAnnotation bool get isEmpty => true;", |
| + "}", |
| + ""); |
| + assertErrors(result.getErrors()); |
| + } |
| } |