Index: compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java |
diff --git a/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java b/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java |
index 87a941c9886e245a605242310b2cd711d4d6ba24..6aaea439dc81d2c3259accc4b348d8f3ff9832be 100644 |
--- a/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java |
+++ b/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java |
@@ -1512,6 +1512,40 @@ public class IncrementalCompilation2Test extends CompilerTestCase { |
/** |
* <p> |
+ * http://code.google.com/p/dart/issues/detail?id=7598 |
+ */ |
+ public void test_newLibrarySyntax_export_withMetadata() throws Exception { |
+ appSource.setContent( |
+ "A.dart", |
+ makeCode( |
+ "// filler filler filler filler filler filler filler filler filler filler filler", |
+ "library test.A;", |
+ "var a = 0;", |
+ "")); |
+ appSource.setContent( |
+ "B.dart", |
+ makeCode( |
+ "// filler filler filler filler filler filler filler filler filler filler filler", |
+ "library test.B;", |
+ "@meta export 'A.dart';", |
+ "const meta = 'meta!';", |
+ "")); |
+ appSource.setContent( |
+ APP, |
+ makeCode( |
+ "// filler filler filler filler filler filler filler filler filler filler filler", |
+ "library test.app;", |
+ "import 'B.dart';", |
+ "main() {", |
+ " print(a);", |
+ "}", |
+ "")); |
+ compile(); |
+ assertErrors(errors); |
+ } |
+ |
+ /** |
+ * <p> |
* http://code.google.com/p/dart/issues/detail?id=4238 |
*/ |
public void test_typesPropagation_html_query() throws Exception { |