This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Compiler error with DelayedInit

No replies
fwbrasil
Joined: 2011-03-07,
User offline. Last seen 10 weeks 4 days ago.
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

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland