Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-4683

DelayedInit crashes following $outer pointers

    Details

      Description

      [Elided, replaced.]

      class DelayedInitTest {
        def a = ()
        class B extends DelayedInit {
          a
          def delayedInit(body: => Unit) = ()
        }
      }
       
      scalac3 ./a.scala 
      error: java.lang.Error: symbol value $outer does not exist in DelayedInitTest$B$delayedInit$body.apply
      	at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:31)
      	at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:1027)
      	at scala.tools.nsc.backend.icode.GenICode$ICodePhase.genLoadQualifier(GenICode.scala:1175)
      	at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:921)
      	at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genStat(GenICode.scala:174)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rytz Lukas Rytz
                Reporter:
                fwbrasil Flávio W. Brasil
              • Votes:
                14 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: