blob: 812b316f9c944ac0b472fd55875eebdb8ef39737 (
plain) (
tree)
|
|
object Obj {
private var cache: Any = ()
def returning(f: () => Unit) = ()
def foo: Unit = {
returning(() => cache = ())
}
def apply(): Any = {
cache
}
}
object Test extends dotty.runtime.LegacyApp {
Obj()
}
|