Skip to content

Dependent method type referring to previous argument list #3873

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
scabug opened this issue Sep 26, 2010 · 2 comments
Closed

Dependent method type referring to previous argument list #3873

scabug opened this issue Sep 26, 2010 · 2 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Sep 26, 2010

class A { 
  class B
  def b: B = new B 
}
def f(a: A)(b: a.B): a.B = b

val a = new A
f(a)(a.b)
f(new A)(a.b) // should not compile
@scabug
Copy link
Author

scabug commented Sep 26, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3873?orig=1
Reporter: @ingoem

@scabug
Copy link
Author

scabug commented Sep 27, 2010

@adriaanm said:
(In r23111) closes #3873. fixed unsoundness in dependent method types reported by Ingo.

review by maier as no good deed goes unpunished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants