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 f058ab172eb1311006563077d3a9699fc822706b..137bf358cf47684d7d6528a14846a03c60c48ae1 100644 |
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
@@ -6479,5 +6479,15 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase { |
result.getErrors(), |
errEx(TypeErrorCode.NOT_A_MEMBER_OF, 13, 5, 2)); |
} |
+ |
+ public void test_mixin_disallowMixinApplication_asMixin() throws Exception { |
+ AnalyzeLibraryResult result = analyzeLibrary( |
+ "// filler filler filler filler filler filler filler filler filler filler", |
+ "typedef M = Object with M;", |
+ ""); |
+ assertErrors( |
+ result.getErrors(), |
+ errEx(ResolverErrorCode.CANNOT_MIXIN_CLASS_WITH_MIXINS, 2, 25, 1)); |
+ } |
} |