Skip to content

No eta-expansion based on expected type in some situations #2192

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
smarter opened this issue Apr 4, 2017 · 0 comments
Closed

No eta-expansion based on expected type in some situations #2192

smarter opened this issue Apr 4, 2017 · 0 comments

Comments

@smarter
Copy link
Member

smarter commented Apr 4, 2017

I don't know if this is intended, but the following works with scalac but not dotty:

object Test {
  def foo(x: Int): Int = x

  Some(foo): Option[Int => Int]
    // missing arguments for method foo
    // follow this method with `_' if you want to treat it as a partially applied function
}
@smarter smarter closed this as completed in 14fde01 Apr 9, 2017
smarter added a commit that referenced this issue Apr 9, 2017
Fix #2192: Follow supertypes when determining whether an expect type …
odersky referenced this issue Apr 11, 2017
Fix #2212: Avoid imports in the wrong namespace
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