For example the following code compiles just fine:...
# announcements
v
For example the following code compiles just fine:
Copy code
fun delegated(any: Any): Lazy<Any> {
  return lazy { any }
}

class Bar2() {
  private val foo by delegated(this)
}