| Index: tests/lib/mirrors/redirection_type_shuffling_test.dart
|
| diff --git a/tests/lib/mirrors/redirection_type_shuffling_test.dart b/tests/lib/mirrors/redirection_type_shuffling_test.dart
|
| index 582b4148202554c6b6c4a6917ac87fd56ad9b867..c1db64c58e42d91a259204c4b9226be30da00e91 100644
|
| --- a/tests/lib/mirrors/redirection_type_shuffling_test.dart
|
| +++ b/tests/lib/mirrors/redirection_type_shuffling_test.dart
|
| @@ -7,30 +7,14 @@ import "package:expect/expect.dart";
|
|
|
| class G<A extends int, B extends String> {
|
| G();
|
| - factory G.swap() = G<B,A>; /// static type warning
|
| + factory G.swap() = G<B,A>; /// 00: static type warning
|
| factory G.retain() = G<A,B>;
|
| }
|
|
|
| -bool get inCheckedMode {
|
| - try {
|
| - var i = 1;
|
| - String s = i;
|
| - return false;
|
| - } catch(e) {
|
| - return true;
|
| - }
|
| -}
|
| -
|
| main() {
|
| ClassMirror cm = reflect(new G<int, String>()).type;
|
|
|
| - if (inCheckedMode) {
|
| - Expect.throws(() => cm.newInstance(#swap, []),
|
| - (e) => e is MirroredCompilationError,
|
| - 'Checked mode should not allow violation of type bounds');
|
| - } else {
|
| - Expect.isTrue(cm.newInstance(#swap, []).reflectee is G<String,int>);
|
| - }
|
| -
|
| Expect.isTrue(cm.newInstance(#retain, []).reflectee is G<int,String>);
|
| +
|
| + Expect.isTrue(cm.newInstance(#swap, []).reflectee is G<String,int>); /// 00: dynamic type error
|
| }
|
|
|