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 // Check that type of the AssertAssignable is recomputed correctly. | 4 // Check that type of the AssertAssignable is recomputed correctly. |
5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr | 5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr |
6 | 6 |
7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
8 | 8 |
9 class A { | 9 class A { |
10 final p; | 10 final p; |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 main() { | 40 main() { |
41 final a = new A(new B(new A("haha", true), false), false); | 41 final a = new A(new B(new A("haha", true), false), false); |
42 | 42 |
43 for (var i = 0; i < 20; i++) { | 43 for (var i = 0; i < 20; i++) { |
44 Expect.isTrue(foo(a)); | 44 Expect.isTrue(foo(a)); |
45 } | 45 } |
46 Expect.isTrue(foo(a)); | 46 Expect.isTrue(foo(a)); |
47 } | 47 } |
OLD | NEW |