Skip to content

NoDenotation.owner in LabmdaLift #429

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
DarkDimius opened this issue Mar 25, 2015 · 0 comments · Fixed by #430
Closed

NoDenotation.owner in LabmdaLift #429

DarkDimius opened this issue Mar 25, 2015 · 0 comments · Fixed by #430

Comments

@DarkDimius
Copy link
Contributor

class KillLambdaLift {
  private def com: this.type = _root_.scala.Predef.???
}
exception while transforming _root_ of class class dotty.tools.dotc.ast.Trees$Ident # 31
exception while transforming _root_.scala of class class dotty.tools.dotc.ast.Trees$Select # 32
exception while transforming _root_.scala.Predef of class class dotty.tools.dotc.ast.Trees$Select # 105
exception while transforming _root_.scala.Predef.??? of class class dotty.tools.dotc.ast.Trees$Select # 394
exception while transforming _root_.scala.Predef.???() of class class dotty.tools.dotc.ast.Trees$Apply # 395
exception while transforming private def com(): i321 = _root_.scala.Predef.???() of class class dotty.tools.dotc.ast.Trees$DefDef # 396
exception while transforming  extends Object {
  def <init>(): i321 = {
    super()
    ()
  }
  private def com(): i321 = _root_.scala.Predef.???()
} of class class dotty.tools.dotc.ast.Trees$Template # 425
exception while transforming class i321 extends Object {
  def <init>(): i321 = {
    super()
    ()
  }
  private def com(): i321 = _root_.scala.Predef.???()
} of class class dotty.tools.dotc.ast.Trees$TypeDef # 426
exception while transforming package <empty> {
  class i321 extends Object {
    def <init>(): i321 = {
      super()
      ()
    }
    private def com(): i321 = _root_.scala.Predef.???()
  }
  final lazy module val i321: i321$ = new i321$()
  final module class i321$ extends Object { this: i321$ =>
    def <init>(): i321$ = {
      super()
      ()
    }
  }
} of class class dotty.tools.dotc.ast.Trees$PackageDef # 438
Exception in thread "main" java.lang.AssertionError: NoDenotation.owner
    at dotty.tools.dotc.core.SymDenotations$NoDenotation$.owner(SymDenotations.scala:1575)
    at dotty.tools.dotc.core.SymDenotations$SymDenotation.enclosingMethod(SymDenotations.scala:747)
    at dotty.tools.dotc.transform.SymUtils$.enclosure$extension(SymUtils.scala:68)
    at dotty.tools.dotc.transform.LambdaLift$LambdaLifter.transformIdent(LambdaLift.scala:375)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.goIdent(TreeTransform.scala:563)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformNamed(TreeTransform.scala:958)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1205)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformNamed(TreeTransform.scala:963)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1205)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformNamed(TreeTransform.scala:963)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1205)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformNamed(TreeTransform.scala:963)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1205)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformUnnamed(TreeTransform.scala:1028)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1206)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformNamed(TreeTransform.scala:997)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1205)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.dotty$tools$dotc$transform$TreeTransforms$TreeTransformer$$transformStat$1(TreeTransform.scala:1231)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$38.apply(TreeTransform.scala:1235)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$38.apply(TreeTransform.scala:1235)
    at dotty.tools.dotc.core.Decorators$ListDecorator$.loop$1(Decorators.scala:50)
    at dotty.tools.dotc.core.Decorators$ListDecorator$.mapconserve$extension(Decorators.scala:66)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformStats(TreeTransform.scala:1235)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformUnnamed(TreeTransform.scala:1176)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1206)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformNamed(TreeTransform.scala:1004)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1205)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.dotty$tools$dotc$transform$TreeTransforms$TreeTransformer$$transformStat$1(TreeTransform.scala:1231)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$38.apply(TreeTransform.scala:1235)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$38.apply(TreeTransform.scala:1235)
    at dotty.tools.dotc.core.Decorators$ListDecorator$.loop$1(Decorators.scala:50)
    at dotty.tools.dotc.core.Decorators$ListDecorator$.mapconserve$extension(Decorators.scala:66)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformStats(TreeTransform.scala:1235)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transformUnnamed(TreeTransform.scala:1185)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1206)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer$$anonfun$transform$2.apply(TreeTransform.scala:1198)
    at dotty.tools.dotc.reporting.Reporting$class.traceIndented(Reporter.scala:147)
    at dotty.tools.dotc.core.Contexts$Context.traceIndented(Contexts.scala:51)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.transform(TreeTransform.scala:1197)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.macroTransform(TreeTransform.scala:556)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.run(TreeTransform.scala:480)
    at dotty.tools.dotc.core.Phases$Phase$$anonfun$runOn$1.apply(Phases.scala:265)
    at dotty.tools.dotc.core.Phases$Phase$$anonfun$runOn$1.apply(Phases.scala:263)
    at scala.collection.immutable.List.map(List.scala:273)
    at dotty.tools.dotc.core.Phases$Phase$class.runOn(Phases.scala:263)
    at dotty.tools.dotc.transform.TreeTransforms$TreeTransformer.runOn(TreeTransform.scala:474)
    at dotty.tools.dotc.Run$$anonfun$compileSources$1$$anonfun$apply$mcV$sp$3.apply(Run.scala:50)
    at dotty.tools.dotc.Run$$anonfun$compileSources$1$$anonfun$apply$mcV$sp$3.apply(Run.scala:47)
    at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
    at dotty.tools.dotc.Run$$anonfun$compileSources$1.apply$mcV$sp(Run.scala:47)
    at dotty.tools.dotc.Run$$anonfun$compileSources$1.apply(Run.scala:42)
    at dotty.tools.dotc.Run$$anonfun$compileSources$1.apply(Run.scala:42)
    at dotty.tools.dotc.util.Stats$.monitorHeartBeat(Stats.scala:68)
    at dotty.tools.dotc.Run.compileSources(Run.scala:41)
    at dotty.tools.dotc.Run.compile(Run.scala:32)
    at dotty.tools.dotc.Driver.doCompile(Driver.scala:20)
    at dotty.tools.dotc.Main$.doCompile(Main.scala:26)
    at dotty.tools.dotc.Driver.process(Driver.scala:31)
    at dotty.tools.dotc.Driver.main(Driver.scala:40)
    at dotty.tools.dotc.Main.main(Main.scala)
odersky added a commit to odersky/dotty that referenced this issue Mar 25, 2015
enclosingMethod should not crash on NoDenotation.
@odersky odersky mentioned this issue Mar 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant