Hello! Does Kotlin supports top level delegates? I...
# announcements
p
Hello! Does Kotlin supports top level delegates? If yes then how can i define operator fun getValue for that?
c
Yes, using
Any?
(or any nullable type) as the
thisRef
type allows it to be used for local and top-level properties.
Nothing?
makes it so only top-level properties can use it
l
Nullable
thisRef
, like for
lazy
p
Thanks!