Is it possible to define a method on optional type...
# announcements
m
Is it possible to define a method on optional type? Just like I can define an extension function:
fun MyClass?.myFunction() = ...
I was thinking about something like:
Copy code
class MyClass {
    fun ?myFunction() = ...
}