-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Analyzer gets confused by string interpolation of this
#28206
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
Comments
Behavior is correct. You can only use an identifier after a (Not saying it's not annoying, and we shouldn't consider allowing it, but currently the analyzer is correct, and dart2js also rejects the program, although with a not very useful error message). |
Well ok, but the analyzer disagrees with the VM and the VM is more convenient in this case so I suggest we just change the analyzer (and if necessary, the spec). :-) |
I'll mark this as a language change request then. One that I'm quite positive to :) |
Then why is |
Today, no error is reported for the example in the original posting. |
The analyzer doesn't like
'$this$foo'
:The VM compiler handles all three fine.
The text was updated successfully, but these errors were encountered: