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

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

Issue 10831406: Make ClassNode visit type parameters in visitChildren (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/tree/nodes.dart ('k') | no next file » | 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 6c1fdee4eee9c5df4d106305e5eafa46f5b4a9d9..9d08465fcae99c31ffb2efa16ed7e46540d8375a 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -546,6 +546,35 @@ main() {
(String result) { Expect.equals(expectedResult, result); });
}
+testClassTypeArgumentBound() {
+ var librarySrc = '''
+#library('mylib');
+
+interface I {}
+class A<T extends I> {}
+
+''';
+ var mainSrc = '''
+#import('mylib.dart', prefix: 'mylib');
+
+interface I {}
+class A<T extends I> {}
+
+main() {
+ new A();
+ new mylib.A();
+}
+''';
+ var expectedResult =
+ 'interface I{}'
+ 'class A<T extends I>{}'
+ 'interface p_I{}'
+ 'class p_A<p_T extends p_I>{}'
+ 'main(){new p_A(); new A();}';
+ testDart2DartWithLibrary(mainSrc, librarySrc,
+ (String result) { Expect.equals(expectedResult, result); });
+}
+
main() {
testSignedConstants();
testGenericTypes();
@@ -578,4 +607,5 @@ main() {
testDefaultClassNamePlaceholder();
testFactoryRename();
testTypeVariablesAreRenamed();
+ testClassTypeArgumentBound();
}
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698