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

Unified Diff: tests/lib/mirrors/generic_mixin_applications_test.dart

Issue 27300003: Change "typedef" to "class" in core library and related tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update some dart2js tests and unparser. 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
« no previous file with comments | « tests/language/mixin_typedef_constructor_test.dart ('k') | tests/lib/mirrors/typedef_metadata_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/generic_mixin_applications_test.dart
diff --git a/tests/lib/mirrors/generic_mixin_applications_test.dart b/tests/lib/mirrors/generic_mixin_applications_test.dart
index 47e6234daf50b4c792a3c36e2ac9c0b2c3ed3e72..1cc0acf6798a0762d1754ee5526b6b4d27dcd597 100644
--- a/tests/lib/mirrors/generic_mixin_applications_test.dart
+++ b/tests/lib/mirrors/generic_mixin_applications_test.dart
@@ -14,11 +14,11 @@ class Super<S> {}
class Mixin<M> {}
class Nixim<N> {}
-typedef NonGenericMixinApplication1 = Super with Mixin;
-typedef NonGenericMixinApplication2 = Super<num> with Mixin<String>;
+class NonGenericMixinApplication1 = Super with Mixin;
+class NonGenericMixinApplication2 = Super<num> with Mixin<String>;
-typedef GenericMixinApplication1<MA> = Super<MA> with Mixin<MA>;
-typedef GenericMixinApplication2<MA> = Super<num> with Mixin<String>;
+class GenericMixinApplication1<MA> = Super<MA> with Mixin<MA>;
+class GenericMixinApplication2<MA> = Super<num> with Mixin<String>;
class NonGenericClass1 extends Super with Mixin {}
class NonGenericClass2 extends Super<num> with Mixin<String> {}
@@ -46,7 +46,7 @@ main() {
typeParameters(reflectClass(NonGenericClass2).superclass, []);
typeParameters(reflectClass(GenericClass1).superclass, []);
typeParameters(reflectClass(GenericClass2).superclass, []);
-
+
typeArguments(reflectClass(NonGenericMixinApplication1), []);
typeArguments(reflectClass(NonGenericMixinApplication2), []);
typeArguments(reflectClass(GenericMixinApplication1), []);
@@ -78,7 +78,7 @@ main() {
typeParameters(reflect(new NonGenericClass2()).type.superclass, []);
typeParameters(reflect(new GenericClass1<bool>()).type.superclass, []);
typeParameters(reflect(new GenericClass2<bool>()).type.superclass, []);
-
+
typeArguments(reflect(new NonGenericMixinApplication1()).type, []);
typeArguments(reflect(new NonGenericMixinApplication2()).type, []);
typeArguments(reflect(new GenericMixinApplication1<bool>()).type, [reflectClass(bool)]);
« no previous file with comments | « tests/language/mixin_typedef_constructor_test.dart ('k') | tests/lib/mirrors/typedef_metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698