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 explicit outer with nesting, self type #7853

Closed
scabug opened this issue Sep 17, 2013 · 2 comments
Closed

regression in explicit outer with nesting, self type #7853

scabug opened this issue Sep 17, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Sep 17, 2013

As seen in Scala Refactoring.

trait S {
  trait T {
    this: Any =>

    new {
      new {
        S.this
      }
    }
  }
}
Exception in thread "main" scala.reflect.internal.Types$TypeError: value <none> is not a member of S.this.T with Any
	at scala.tools.nsc.typechecker.Contexts$Context.issueCommon(Contexts.scala:546)
	at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:551)
	at scala.tools.nsc.typechecker.Infer$Inferencer.issue(Infer.scala:201)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4252)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4252)
	at scala.tools.nsc.typechecker.Typers$Typer.onError$3(Typers.scala:4226)
	at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4252)
	at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4279)
	at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5018)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5035)
	at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5071)
	at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5098)
	at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5045)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5049)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5123)
	at scala.tools.nsc.transform.ExplicitOuter$OuterPathTransformer.outerSelect(ExplicitOuter.scala:263)
	at scala.tools.nsc.transform.ExplicitOuter$OuterPathTransformer.outerPath(ExplicitOuter.scala:276)
	at scala.tools.nsc.transform.ExplicitOuter$OuterPathTransformer.outerPath(ExplicitOuter.scala:276)
@scabug
Copy link
Author

scabug commented Sep 17, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7853?orig=1
Reporter: @retronym
Affected Versions: 2.11.0-M6

@scabug
Copy link
Author

scabug commented Sep 17, 2013

@retronym said:
scala/scala#2955

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