| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 | 6 |
| 7 // Test that the return type of a method is being registered for both | 7 // Test that the return type of a method is being registered for both |
| 8 // its bailout and optimized version in dart2js. | 8 // its bailout and optimized version in dart2js. |
| 9 | 9 |
| 10 var a; | 10 var a; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // This check used to fail because dart2js was assuming [b] was an | 32 // This check used to fail because dart2js was assuming [b] was an |
| 33 // array. | 33 // array. |
| 34 Expect.equals(1, b.length); | 34 Expect.equals(1, b.length); |
| 35 } | 35 } |
| 36 | 36 |
| 37 main() { | 37 main() { |
| 38 a = new Map(); | 38 a = new Map(); |
| 39 bar(); | 39 bar(); |
| 40 foo(); | 40 foo(); |
| 41 } | 41 } |
| OLD | NEW |