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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java

Issue 11548016: Issue 6955. Test that we support cascaded calls in initializers lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 01a41796618f924c73f4066c83cb4354308bcafe..cd28001ad39cd5b95b75f9d99c0a369199fdaab7 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
@@ -4596,7 +4596,7 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
assertNotNull(access.getElement());
}
}
-
+
/**
* <p>
* http://code.google.com/p/dart/issues/detail?id=4315
@@ -4626,6 +4626,22 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
}
/**
+ * Test that we already support cascaded calls in initializers. No implementation was changed.
+ * <p>
+ * http://code.google.com/p/dart/issues/detail?id=6955
+ */
+ public void test_cascade_inInitializer() throws Exception {
+ AnalyzeLibraryResult libraryResult = analyzeLibrary(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "class A {",
+ " var f;",
+ " A() : f = ''..length;",
+ "}",
+ "");
+ assertErrors(libraryResult.getErrors());
+ }
+
+ /**
* Source is invalid, but should not cause {@link NullPointerException}.
* <p>
* http://code.google.com/p/dart/issues/detail?id=4354
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698