Skip to content

Refinement check doesn't dealias #4339

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
allanrenucci opened this issue Apr 18, 2018 · 0 comments
Closed

Refinement check doesn't dealias #4339

allanrenucci opened this issue Apr 18, 2018 · 0 comments

Comments

@allanrenucci
Copy link
Contributor

class Test {
  def test = {
    val x: PartialFunction[Int, Int]{ def foo(): Int } = { case x => x } // error:  Lambda does not define foo

    type PF = PartialFunction[Int, Int]{ def foo(): Int }
    val y: PF = { case x => x } // ok
  }
}
allanrenucci added a commit to dotty-staging/dotty that referenced this issue Apr 18, 2018
allanrenucci added a commit to dotty-staging/dotty that referenced this issue Apr 18, 2018
allanrenucci added a commit to dotty-staging/dotty that referenced this issue Apr 18, 2018
smarter added a commit that referenced this issue Apr 19, 2018
Fix #4339: Dealias when checking refinements
gsps pushed a commit to gsps/dotty that referenced this issue Apr 21, 2018
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