it is just a syntax sugar for `if (receiver != nul...
# announcements
c
it is just a syntax sugar for
if (receiver != null) receiver.right else null
so if you need special behaviour you can declare corresponding extension function on a nullable type
Copy code
fun MyType?.foo() = if (this == null) "" else doSomeWork