| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library type_mask2_test; | 5 library type_mask2_test; |
| 6 | 6 |
| 7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
| 8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
| 9 import 'type_test_helper.dart'; | 9 import 'type_test_helper.dart'; |
| 10 import 'package:compiler/implementation/elements/elements.dart' | 10 import 'package:compiler/src/elements/elements.dart' |
| 11 show Element, ClassElement; | 11 show Element, ClassElement; |
| 12 import 'package:compiler/implementation/types/types.dart'; | 12 import 'package:compiler/src/types/types.dart'; |
| 13 | 13 |
| 14 isCheckedMode() { | 14 isCheckedMode() { |
| 15 try { | 15 try { |
| 16 var i = 1; | 16 var i = 1; |
| 17 String s = i; | 17 String s = i; |
| 18 return false; | 18 return false; |
| 19 } catch (e) { | 19 } catch (e) { |
| 20 return true; | 20 return true; |
| 21 } | 21 } |
| 22 } | 22 } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 disjointMasks: [subtypeA, exactB], | 185 disjointMasks: [subtypeA, exactB], |
| 186 flattened: subclassObject, | 186 flattened: subclassObject, |
| 187 containedClasses: [A, B, C, D, E]); | 187 containedClasses: [A, B, C, D, E]); |
| 188 | 188 |
| 189 check([exactE, exactB, exactA], | 189 check([exactE, exactB, exactA], |
| 190 disjointMasks: [subclassB, exactA], | 190 disjointMasks: [subclassB, exactA], |
| 191 flattened: subclassObject, | 191 flattened: subclassObject, |
| 192 containedClasses: [A, B, E]); | 192 containedClasses: [A, B, E]); |
| 193 })); | 193 })); |
| 194 } | 194 } |
| OLD | NEW |