| Index: tests/compiler/dart2js/simple_inferrer_try_catch_test.dart
|
| ===================================================================
|
| --- tests/compiler/dart2js/simple_inferrer_try_catch_test.dart (revision 25405)
|
| +++ tests/compiler/dart2js/simple_inferrer_try_catch_test.dart (working copy)
|
| @@ -135,6 +135,15 @@
|
| }
|
| }
|
|
|
| +returnInt7() {
|
| + var a = 'foo';
|
| + try {
|
| + a = 42;
|
| + return a;
|
| + } catch (e) {
|
| + }
|
| + return 2;
|
| +}
|
|
|
| main() {
|
| returnInt1();
|
| @@ -149,6 +158,7 @@
|
| returnDyn5();
|
| returnInt6();
|
| returnDyn6();
|
| + returnInt7();
|
| }
|
| """;
|
|
|
| @@ -173,6 +183,7 @@
|
| checkReturn('returnInt5', typesTask.intType);
|
| checkReturn('returnInt6',
|
| new TypeMask.nonNullSubtype(compiler.intClass.rawType));
|
| + checkReturn('returnInt7', typesTask.intType);
|
|
|
| var subclassOfInterceptor =
|
| findTypeMask(compiler, 'Interceptor', 'nonNullSubclass');
|
|
|