| 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
|
|
|