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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java

Issue 14698003: Report CTEC.MULTIPLE_SUPER_INITIALIZERS (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
index 23ed41db3a1ae7ba948acf4252cedc384b12ccf1..50c12b2b3378188efe33c1670e4f9a9d648f69a2 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
@@ -521,6 +521,28 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_multipleSuperInitializers_no() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {}",
+ "class B extends A {",
+ " B() {}",
+ "}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
+ public void test_multipleSuperInitializers_single() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {}",
+ "class B extends A {",
+ " B() : super() {}",
+ "}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
public void test_newWithAbstractClass_factory() throws Exception {
Source source = addSource(createSource(//
"abstract class A {",

Powered by Google App Engine
This is Rietveld 408576698