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

Unified Diff: tests/compiler/dart2js/unparser_test.dart

Issue 11878043: Start adding support for mixin application syntax. We now parse the typedef variant of mixin applic… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix broken language test. Created 7 years, 11 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 | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index 441269e2013caf29c2d03157170ead52e35fe99f..cecb766a777981f167c8695d837f4eacb6736112 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -287,6 +287,23 @@ testClassDeclarations() {
testUnparseTopLevelWithMetadata('class Fisk{operator-(x){}}');
}
+testMixinApplications() {
+ testUnparseTopLevelWithMetadata('typedef C = S with M;');
+ testUnparseTopLevelWithMetadata('typedef C = S with M1,M2;');
+ testUnparseTopLevelWithMetadata('typedef C = S with M1,M2,M3;');
+
+ testUnparseTopLevelWithMetadata('typedef C<A> = S with M;');
+ testUnparseTopLevelWithMetadata('typedef C<A,B> = S with M;');
+
+ testUnparseTopLevelWithMetadata('typedef C = S<A> with M;');
+ testUnparseTopLevelWithMetadata('typedef C = S<A,B> with M;');
+
+ testUnparseTopLevelWithMetadata('typedef C = S with M<A>;');
+ testUnparseTopLevelWithMetadata('typedef C = S with M<A,B>;');
+ testUnparseTopLevelWithMetadata('typedef C = S with M1<A>,M2;');
+ testUnparseTopLevelWithMetadata('typedef C = S with M1,M2<A,B>;');
+}
+
main() {
testSignedConstants();
testGenericTypes();
@@ -306,4 +323,5 @@ main() {
testCombinators();
testRedirectingFactoryConstructors();
testClassDeclarations();
+ testMixinApplications();
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698