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

Confusing error location for mismatched string curlies #13736

Closed
blois opened this issue Oct 2, 2013 · 5 comments
Closed

Confusing error location for mismatched string curlies #13736

blois opened this issue Oct 2, 2013 · 5 comments
Assignees
Labels
P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@blois
Copy link
Contributor

blois commented Oct 2, 2013

Given the following code with mismatch {}'s in the string:

void main() {
  var i = 0;
  print('foo ${i');
}

dart2js gives the error:
squigly_error.dart:3:13: unmatched '{'
void main() {

I would expect it to report the error for the print statement, not for the main() method.

@peter-ahe-google
Copy link
Contributor

This is a good suggestion, but it might be tricky to fix. The problem is that string interpolation has rather confusing syntax and allows you to seemingly nest a single quote string inside a single quote string.


Set owner to @peter-ahe-google.
Added this to the Later milestone.

@kasperl
Copy link

kasperl commented Oct 2, 2013

Removed Priority-Unassigned label.
Added Priority-Low label.

@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.

@blois blois added Type-Defect P3 A lower priority bug or feature request web-dart2js labels Aug 4, 2014
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Feb 29, 2016
@sigmundch
Copy link
Member

handled better in CFE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

5 participants