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

Type.companion doesn't account for prefixes #8920

Open
scabug opened this issue Oct 16, 2014 · 1 comment
Open

Type.companion doesn't account for prefixes #8920

scabug opened this issue Oct 16, 2014 · 1 comment

Comments

@scabug
Copy link

scabug commented Oct 16, 2014

scala> class Base { case class C(x: Int) }
defined class Base

scala> object Derived extends Base
defined object Derived

scala> typeOf[Derived.C]
res0: reflect.runtime.universe.Type = Derived.C

scala> res0.companion
res1: reflect.runtime.universe.Type = Base.this.C.type
@scabug
Copy link
Author

scabug commented Oct 16, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8920?orig=1
Reporter: @xeno-by
Affected Versions: 2.11.2

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