| 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 | 6 import |
| 7 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' | 7 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' |
| 8 show TypeMask; | 8 show TypeMask; |
| 9 | 9 |
| 10 import 'compiler_helper.dart'; | 10 import 'compiler_helper.dart'; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 var b = new B(0, inscrutable(0) == 0 ? 2 : "horse"); | 44 var b = new B(0, inscrutable(0) == 0 ? 2 : "horse"); |
| 45 var c = inscrutable(0) == 0 ? a : "kurt"; | 45 var c = inscrutable(0) == 0 ? a : "kurt"; |
| 46 var d = inscrutable(0) == 0 ? b : "gert"; | 46 var d = inscrutable(0) == 0 ? b : "gert"; |
| 47 if (c == d) { | 47 if (c == d) { |
| 48 print("hestfisk"); | 48 print("hestfisk"); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 """; | 51 """; |
| 52 | 52 |
| 53 void main() { | 53 void main() { |
| 54 String generated = compileAll(TEST); | 54 compileAll(TEST).then((generated) { |
| 55 if (generated.contains(r'=== true')) { | 55 if (generated.contains(r'=== true')) { |
| 56 print(generated); | 56 print(generated); |
| 57 Expect.fail("missing elision of '=== true'"); | 57 Expect.fail("missing elision of '=== true'"); |
| 58 } | 58 } |
| 59 }); |
| 59 } | 60 } |
| OLD | NEW |