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

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
Index: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index 43d362dc9cd38bf4c719ef8e9cc46699ad10642a..5184bb82e9ca8d39dcc614a17736918cb8551908 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -513,6 +513,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 p_I{}'
+ 'class p_A<T extends p_I>{}'
+ 'interface I{}'
+ 'class A<T extends I>{}'
+ 'main(){new A(); new p_A();}';
+ testDart2DartWithLibrary(mainSrc, librarySrc,
+ (String result) { Expect.equals(expectedResult, result); });
+}
+
main() {
testSignedConstants();
testGenericTypes();
@@ -544,4 +573,5 @@ main() {
testFieldTypeOutput();
testDefaultClassNamePlaceholder();
testFactoryRename();
+ testClassTypeArgumentBound();
}
« lib/compiler/implementation/tree/nodes.dart ('K') | « lib/compiler/implementation/tree/nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698