-
Notifications
You must be signed in to change notification settings - Fork 1.1k
REPL will crash when expression SAM converting to abstract class type #5733
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
Labels
Comments
A new occurence of #4051 |
On that PR it prints scala> abstract class F { def f(arg: Any): Unit }
// defined class F
scala> val f: F = println
1 | val f: F = println
| ^^^^^^^
|method println is eta-expanded even though F does not have the @FunctionalInterface annotation.
val f: F = anon$1@459f0e10 Currently cannot easely add it as a test because of the |
smarter
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 26, 2019
smarter
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 26, 2019
Already fixed, regression test in #5800. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash only occurs when working in REPL.
The text was updated successfully, but these errors were encountered: