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

soft keyword end is considered as postfix operator after unary operator #13134

Closed
bohonghuang opened this issue Jul 23, 2021 · 0 comments · Fixed by #13139
Closed

soft keyword end is considered as postfix operator after unary operator #13134

bohonghuang opened this issue Jul 23, 2021 · 0 comments · Fixed by #13139
Assignees
Milestone

Comments

@bohonghuang
Copy link

Compiler version

3.0.1

Minimized code

  {
    val end = 0
    assert(~end == -1) //Not found: ~
  }

  {
    val end = false
    assert(!end) // postfix operator `end` needs to be enabled
  }              // by making the implicit value scala.language.postfixOps visible.
odersky added a commit to dotty-staging/dotty that referenced this issue Jul 23, 2021
Lookahead also has to replace and end marker with a normal identifier.

Fixes scala#13134
@Kordyjan Kordyjan added this to the 3.1.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants