Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"$100" leads to method not found "get 100" #11174

Closed
peter-ahe-google opened this issue Jun 10, 2013 · 5 comments
Closed

"$100" leads to method not found "get 100" #11174

peter-ahe-google opened this issue Jun 10, 2013 · 5 comments
Assignees
Labels
P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@peter-ahe-google
Copy link
Contributor

According to a post on misc@dartlang.org, dart2js handles "$100" incorrectly.

It should lead to a parse error, but it's treated as an attempt to call a getter named 100.

@kasperl
Copy link

kasperl commented Jun 10, 2013

Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@peter-ahe-google
Copy link
Contributor Author

Marked this as blocking #5519.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@peter-ahe-google peter-ahe-google self-assigned this Aug 4, 2014
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Feb 29, 2016
@bkonyi
Copy link
Contributor

bkonyi commented Jun 27, 2018

Looks like we get a more useful error now:

tmp.dart:2:11: Error: A '$' has special meaning inside a string, and must be followed by an identifier or an expression in curly braces ({}).
Try adding a backslash (\) to escape the '$'.
  print('$100');
          ^
tmp.dart:2:11: Error: Getter not found: ''.
  print('$100');
          ^

@bkonyi bkonyi closed this as completed Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

4 participants