Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: tests/language/regress_23046_test.dart

Issue 1056103002: Fix interpretation of string contents after interpolation expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698