| 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. | |
| 6 | |
| 7 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 8 | 6 |
| 9 class A { | 7 // Make sure the logic for skipping the initial quotes in a string isn't |
| 10 final x; | 8 // re-triggered after an interpolation expression. |
| 11 | 9 |
| 12 @NoInline() | 10 const String x = '$y"'; |
| 13 A({this.x: "foo"}) { | 11 const String y = 'foo'; |
| 14 Expect.equals("foo", x.toString()); | 12 const Map m = const { x: 0, y: 1 }; |
| 15 } | |
| 16 } | |
| 17 | |
| 18 class C extends A { | |
| 19 C(foobar) { } | |
| 20 } | |
| 21 | 13 |
| 22 main() { | 14 main() { |
| 23 var c = new C(499); | 15 Expect.equals(x, 'foo"'); |
| 24 Expect.equals("foo", c.x.toString()); | 16 Expect.equals(m.length, 2); |
| 25 } | 17 } |
| 26 | |
| OLD | NEW |