Skip to content
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

regression in typing with val overriding object #8054

Closed
scabug opened this issue Dec 9, 2013 · 4 comments
Closed

regression in typing with val overriding object #8054

scabug opened this issue Dec 9, 2013 · 4 comments

Comments

@scabug
Copy link

scabug commented Dec 9, 2013

trait D {
  trait Manifest {
    class Entry
  }

  val M: Manifest

  def m: M.Entry = ???
}

object D1 extends D {
  object M extends Manifest
}

object D2 extends D {
  val M: Manifest = ???
}

object Hello {

  def main(args: Array[String]) {
    // 2.10.3 - ok
    // 2.11.0-M7 - type mismatch
    val t1: D1.M.Entry = D1.m

    // 2.10.3 - ok
    // 2.11.0-M7 - ok
    val t2: D2.M.Entry = D2.m
  }
}
@scabug
Copy link
Author

scabug commented Dec 9, 2013

Imported From: https://issues.scala-lang.org/browse/SI-8054?orig=1
Reporter: @retronym
Affected Versions: 2.11.0-M7
See #7928

@scabug
Copy link
Author

scabug commented Dec 9, 2013

@scabug
Copy link
Author

scabug commented Dec 9, 2013

@retronym said:
Regression due to the fix for #7928.

@scabug
Copy link
Author

scabug commented Dec 9, 2013

@retronym said:
scala/scala#3241

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

2 participants