| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:expect/expect.dart'; |
| 5 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' | 6 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' |
| 6 show TypeMask; | 7 show TypeMask; |
| 7 | 8 |
| 8 import 'compiler_helper.dart'; | 9 import 'compiler_helper.dart'; |
| 9 | 10 |
| 10 const String TEST = """ | 11 const String TEST = """ |
| 11 returnInt1() { | 12 returnInt1() { |
| 12 var a = 42; | 13 var a = 42; |
| 13 try { | 14 try { |
| 14 a = 54; | 15 a = 54; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 var subclassOfInterceptor = | 175 var subclassOfInterceptor = |
| 175 findTypeMask(compiler, 'Interceptor', 'nonNullSubclass'); | 176 findTypeMask(compiler, 'Interceptor', 'nonNullSubclass'); |
| 176 | 177 |
| 177 checkReturn('returnDyn1', subclassOfInterceptor); | 178 checkReturn('returnDyn1', subclassOfInterceptor); |
| 178 checkReturn('returnDyn2', subclassOfInterceptor); | 179 checkReturn('returnDyn2', subclassOfInterceptor); |
| 179 checkReturn('returnDyn3', subclassOfInterceptor); | 180 checkReturn('returnDyn3', subclassOfInterceptor); |
| 180 checkReturn('returnDyn4', subclassOfInterceptor); | 181 checkReturn('returnDyn4', subclassOfInterceptor); |
| 181 checkReturn('returnDyn5', subclassOfInterceptor); | 182 checkReturn('returnDyn5', subclassOfInterceptor); |
| 182 checkReturn('returnDyn6', typesInferrer.dynamicType); | 183 checkReturn('returnDyn6', typesInferrer.dynamicType); |
| 183 } | 184 } |
| OLD | NEW |