- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Compiler error with DelayedInit
Thu, 2011-06-09, 14:27
I've opened a issue for a compiler error with DelayedInit.Until isn't solved, someone knows a workaround?
https://issues.scala-lang.org/browse/SI-4683
Error in Scala compiler: symbol value $outer does not exist in net.fwbrasil.activate.DelayedInitTest$C$delayedInit$body.apply
class DelayedInitTest {
def a = println("a")
trait A extends DelayedInit with Idable {
def delayedInit(body: => Unit) = {
body
}
}
class C extends A {
a
}
}
--
Flávio W. Brasil
https://issues.scala-lang.org/browse/SI-4683
Error in Scala compiler: symbol value $outer does not exist in net.fwbrasil.activate.DelayedInitTest$C$delayedInit$body.apply
class DelayedInitTest {
def a = println("a")
trait A extends DelayedInit with Idable {
def delayedInit(body: => Unit) = {
body
}
}
class C extends A {
a
}
}
--
Flávio W. Brasil