Closed
Description
[user feedback]
Little string interpolation problem...
Take a look at screenshot: http://i.imm.io/m3RY.png
The string is marked as error in the editor, but it runs well.
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 6528
////////////////////////////////////////////////////////////////////////////////////
OS: Windows 7 - amd64 (6.1)
SDK installed = true
Dartium installed = true
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
lrhn commentedon Apr 17, 2012
The surprising thing is that it runs.
The code is:
print('Previous value: $window.localStorage['test']');
if I read it correctly. The interpolation is only ${window}, and the rest of the string isn't part of it. To be correct, it should be:
print('Previous value: ${window.localStorage['test']}');
As it's written, the string ends at the ' before test, and is followed by the raw identifier 'test', which isn't valid at that position.
How do you run it, and what result does it give?
scheglov commentedon Apr 20, 2012
See comment 1.
Added Invalid label.
Bump pub version