Skip to content

$asInstanceOf$ does not take parameters in structural call #9437

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

Closed
bishabosha opened this issue Jul 27, 2020 · 0 comments
Closed

$asInstanceOf$ does not take parameters in structural call #9437

bishabosha opened this issue Jul 27, 2020 · 0 comments

Comments

@bishabosha
Copy link
Member

Minimized code

class Bag extends reflect.Selectable

@main def Test =
  val x = new Bag:
    val f1 = 23

  println(x.f1())

Output

-- [E050] Type Error: example.scala:7:10 ---------------------------------------
7 |  println(x.f1())
  |          ^^^^
  |          method $asInstanceOf$ in class Any does not take parameters

Expectation

value f1 does not take parameters
bishabosha added a commit that referenced this issue Jul 30, 2020
Fix #9437: Skip $asInstanceOf$ in error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant