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