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

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

Issue 26466005: Support for parsing 'class name = mixinApplication', report error for 'typedef name = mixinApplicat… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments. Created 7 years, 2 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 0197088a2cf92208150f9a52daa9a79f4ecec746..b117af85d42cfcea04c857aa224cdc956ead838f 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
@@ -1873,21 +1873,21 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
- public void test_mixinInheritsFromNotObject_classDeclaration_mixTypedef() throws Exception {
+ public void test_mixinInheritsFromNotObject_classDeclaration_mixTypeAlias() throws Exception {
Source source = addSource(createSource(//
"class A {}",
- "typedef B = Object with A;",
+ "class B = Object with A;",
"class C extends Object with B {}"));
resolve(source);
assertNoErrors(source);
verify(source);
}
- public void test_mixinInheritsFromNotObject_typedef_mixTypedef() throws Exception {
+ public void test_mixinInheritsFromNotObject_typedef_mixTypeAlias() throws Exception {
Source source = addSource(createSource(//
"class A {}",
- "typedef B = Object with A;",
- "typedef C = Object with B;"));
+ "class B = Object with A;",
+ "class C = Object with B;"));
resolve(source);
assertNoErrors(source);
verify(source);
@@ -2912,10 +2912,10 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
- public void test_undefinedConstructorInInitializer_implicit_typedef() throws Exception {
+ public void test_undefinedConstructorInInitializer_implicit_typeAlias() throws Exception {
Source source = addSource(createSource(//
"class M {}",
- "typedef A = Object with M;",
+ "class A = Object with M;",
"class B extends A {",
" B();",
"}"));

Powered by Google App Engine
This is Rietveld 408576698