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

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

Issue 10844002: dart2dart Fix default class unparse (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | « lib/compiler/implementation/dart_backend/emitter.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 b37b41bafba9413ec0454edf7ff90bef17701dd6..ca55cdd2b1a38e11cc39f378a891d16b2e0270a7 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -389,6 +389,18 @@ main() {
(String result) { Expect.equals(expectedResult, result); });
}
+testDefaultClassWithArgs() {
+ testDart2Dart('main(){var result=new IA<String>();}'
+ 'interface IA<T> default A<T extends Object>{IA();}'
+ 'class A<T extends Object> implements IA<T>{factory A(){}}');
+}
+
+testClassExtendsWithArgs() {
+ testDart2Dart('main(){new B<Object>();}'
+ 'class A<T extends Object>{}'
+ 'class B<T extends Object> extends A<T>{}');
+}
+
testStaticInvocation() {
testDart2Dart('main(){var x=Math.parseDouble("1");}');
}
@@ -417,4 +429,6 @@ main() {
testConflictLibraryClassRename();
testNoConflictSendsRename();
testConflictSendsRename();
+ testDefaultClassWithArgs();
+ testClassExtendsWithArgs();
}
« no previous file with comments | « lib/compiler/implementation/dart_backend/emitter.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698