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

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

Issue 14655016: Report CompileTimeErrorCode.MIXIN_DECLARES_CONSTRUCTOR (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix for review comments 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 6ca81a1e8eb63695506588a1f1fefd9a72cf565a..eec7939251cdeeabec76af2603ecde80d31f8bc9 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,32 +521,54 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
- public void test_multipleSuperInitializers_no() throws Exception {
+ public void test_memberWithClassName_setter() throws Exception {
Source source = addSource(createSource(//
- "class A {}",
- "class B extends A {",
- " B() {}",
+ "class A {",
+ " set A(v) {}",
"}"));
resolve(source);
assertNoErrors();
verify(source);
}
- public void test_multipleSuperInitializers_single() throws Exception {
+ public void test_mixinDeclaresConstructor() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {",
+ " m() {}",
+ "}",
+ "class B extends Object with A {}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
+ public void test_mixinDeclaresConstructor_factory() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {",
+ " factory A() {}",
+ "}",
+ "class B extends Object with A {}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
+ public void test_multipleSuperInitializers_no() throws Exception {
Source source = addSource(createSource(//
"class A {}",
"class B extends A {",
- " B() : super() {}",
+ " B() {}",
"}"));
resolve(source);
assertNoErrors();
verify(source);
}
- public void test_memberWithClassName_setter() throws Exception {
+ public void test_multipleSuperInitializers_single() throws Exception {
Source source = addSource(createSource(//
- "class A {",
- " set A(v) {}",
+ "class A {}",
+ "class B extends A {",
+ " B() : super() {}",
"}"));
resolve(source);
assertNoErrors();

Powered by Google App Engine
This is Rietveld 408576698