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

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

Issue 14698013: Report CompileTimeErrorCode.MIXIN_REFERENCES_SUPER (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/CompileTimeErrorCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
index 4ba39dcddbb9d40ce4140cc8943870b0658a1a70..afc2107be2b17ed01812e45fc414757222555cf3 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
@@ -294,17 +294,6 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
- public void fail_mixinReferencesSuper() throws Exception {
- Source source = addSource(createSource(//
- "class A {",
- " toString() -> super.toString();",
- "}",
- "class B extends Object mixin A {}"));
- resolve(source);
- assertErrors(CompileTimeErrorCode.MIXIN_REFERENCES_SUPER);
- verify(source);
- }
-
public void fail_mixinWithNonClassSuperclass() throws Exception {
// TODO(brianwilkerson) Compare with MIXIN_OF_NON_CLASS.
Source source = addSource(createSource(//
@@ -1795,6 +1784,17 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
+ public void test_mixinReferencesSuper() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {",
+ " toString() => super.toString();",
+ "}",
+ "class B extends Object with A {}"));
+ resolve(source);
+ assertErrors(CompileTimeErrorCode.MIXIN_REFERENCES_SUPER);
+ verify(source);
+ }
+
public void test_multipleSuperInitializers() throws Exception {
Source source = addSource(createSource(//
"class A {}",

Powered by Google App Engine
This is Rietveld 408576698