| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 // This is a regression test for http://dartbug.com/22723. |
| 6 |
| 7 import "package:expect/expect.dart"; |
| 8 |
| 9 class A { |
| 10 final x; |
| 11 |
| 12 @NoInline() |
| 13 A({this.x: "foo"}) { |
| 14 Expect.equals("foo", x.toString()); |
| 15 try {} catch (_) {}; // Make sure it really does not get inlined. |
| 16 } |
| 17 } |
| 18 |
| 19 class C extends A { |
| 20 C(foobar) { } |
| 21 } |
| 22 |
| 23 main() { |
| 24 var c = new C(499); |
| 25 Expect.equals("foo", c.x.toString()); |
| 26 } |
| 27 |
| OLD | NEW |