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

Unified Diff: compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java

Issue 10831373: Issue 4543. Use complete Resolver before constants analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: 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 eab4a20b1e0c4209aa46e8642597c923bc341e47..2806d5daef05432ae97bddb0383439d4b38e4678 100644
--- a/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java
+++ b/compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java
@@ -1173,6 +1173,30 @@ public class IncrementalCompilation2Test extends CompilerTestCase {
compile();
ErrorExpectation.assertErrors(errors);
}
+
+ /**
+ * Investigation of failing "language/ct_const4_test".
+ */
+ public void test_useConstFromLib() throws Exception {
+ appSource.setContent(
+ "A.dart",
+ makeCode(
+ "// filler filler filler filler filler filler filler filler filler filler filler",
+ "library A;",
+ "final B = 1;",
+ ""));
+ appSource.setContent(
+ APP,
+ makeCode(
+ "// filler filler filler filler filler filler filler filler filler filler filler",
+ "library application;",
+ "import 'A.dart' as mylib;",
+ "final A = mylib.B;",
+ ""));
+ // do compile, no errors expected
+ compile();
+ assertErrors(errors);
+ }
private void assertAppBuilt() {
didWrite(APP, EXTENSION_DEPS);

Powered by Google App Engine
This is Rietveld 408576698