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 'package:expect/expect.dart'; |
6 import "package:async_helper/async_helper.dart"; | 6 import "package:async_helper/async_helper.dart"; |
7 import 'package:compiler/implementation/types/types.dart' | 7 import 'package:compiler/src/types/types.dart' |
8 show TypeMask; | 8 show TypeMask; |
9 | 9 |
10 import 'compiler_helper.dart'; | 10 import 'compiler_helper.dart'; |
11 import 'type_mask_test_helper.dart'; | 11 import 'type_mask_test_helper.dart'; |
12 | 12 |
13 const String TEST = """ | 13 const String TEST = """ |
14 returnInt1() { | 14 returnInt1() { |
15 var a = 42; | 15 var a = 42; |
16 try { | 16 try { |
17 a = 54; | 17 a = 54; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 findTypeMask(compiler, 'Interceptor', 'nonNullSubclass'); | 190 findTypeMask(compiler, 'Interceptor', 'nonNullSubclass'); |
191 | 191 |
192 checkReturn('returnDyn1', subclassOfInterceptor); | 192 checkReturn('returnDyn1', subclassOfInterceptor); |
193 checkReturn('returnDyn2', subclassOfInterceptor); | 193 checkReturn('returnDyn2', subclassOfInterceptor); |
194 checkReturn('returnDyn3', subclassOfInterceptor); | 194 checkReturn('returnDyn3', subclassOfInterceptor); |
195 checkReturn('returnDyn4', subclassOfInterceptor); | 195 checkReturn('returnDyn4', subclassOfInterceptor); |
196 checkReturn('returnDyn5', subclassOfInterceptor); | 196 checkReturn('returnDyn5', subclassOfInterceptor); |
197 checkReturn('returnDyn6', typesTask.dynamicType); | 197 checkReturn('returnDyn6', typesTask.dynamicType); |
198 })); | 198 })); |
199 } | 199 } |
OLD | NEW |