| 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();
|
| }
|
|
|