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

Frog: 'this' is rejected as interpolation identifier #446

Closed
rakudrama opened this issue Nov 14, 2011 · 1 comment
Closed

Frog: 'this' is rejected as interpolation identifier #446

rakudrama opened this issue Nov 14, 2011 · 1 comment
Assignees
Labels
P3 A lower priority bug or feature request

Comments

@rakudrama
Copy link
Member

bug1b.dart:3:20: fatal: expected identifier, but found keyword 'this'(this)
    print('Thing: $this');
                   ^^^^
bug1b.dart:3:20: warning: can not resolve "this" on "Thing"
    print('Thing: $this');
                   ^^^^
bug1b.dart:3:20: warning: this is not defined anywhere in the world.
    print('Thing: $this');
                   ^^^^
compilation failed with 1 errors

The VM does it right. Priority-Low because one can use ${this}.

bug1b.dart:
class Thing {
  Thing() {
    print('Thing: $this');
    print('Thing: ${this}');
  }
}

main() {
  new Thing();
}

This issue was closed.
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
Projects
None yet
Development

No branches or pull requests

2 participants