how can I write an extension function on `Any` tha...
# getting-started
p
how can I write an extension function on
Any
that prints
this
and then returns
this
? I tried
Copy code
fun Any?.debug(): Any? {
    println(this)
    return this
}
But this now returns
Any?
and not the type of
this
.