| 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 886e205061d4a79a1771409b1c39eb3b09e284b4..41872ce0c7ea655818c75a6998fd92bb2cfb7a96 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| @@ -6133,4 +6133,19 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
|
| assertEquals(3, error.getColumnNumber());
|
| }
|
| }
|
| +
|
| + public void test_superConstructorInvocation_wrongPlace() throws Exception {
|
| + AnalyzeLibraryResult result = analyzeLibrary(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "topLevelMethod() : super() {}",
|
| + "",
|
| + "class A {",
|
| + " m() : super() {}",
|
| + "}",
|
| + "");
|
| + assertErrors(
|
| + result.getErrors(),
|
| + errEx(ResolverErrorCode.SUPER_OUTSIDE_OF_CONSTRUCTOR, 2, 20, 7),
|
| + errEx(ResolverErrorCode.SUPER_OUTSIDE_OF_CONSTRUCTOR, 5, 9, 7));
|
| + }
|
| }
|
|
|