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

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

Issue 14773018: Report MIXIN_INHERITS_FROM_NOT_OBJECT (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks 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 eec7939251cdeeabec76af2603ecde80d31f8bc9..2ac96e8d67ea207ac325561bb2a33a103921a613 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
@@ -553,6 +553,26 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_mixinInheritsFromNotObject_classDeclaration_mixTypedef() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {}",
+ "typedef B = Object with A {}",
+ "class C extends Object with B {}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
+ public void test_mixinInheritsFromNotObject_typedef_mixTypedef() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {}",
+ "typedef B = Object with A {}",
+ "typedef C = Object with B {}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
public void test_multipleSuperInitializers_no() throws Exception {
Source source = addSource(createSource(//
"class A {}",

Powered by Google App Engine
This is Rietveld 408576698