aarjav
11/17/2018, 11:10 PMthis
can == null in the body of the lambda?
fun foo(block: String?.() -> Unit)
vs
fun foo(block: String.() -> Unit)
I noticed that with the second I cannot call .block()
on a String?
but the lambda body (for block param where foo is used) stays the same.rnpy
11/17/2018, 11:27 PMthis
can be null in Kotlin, https://pl.kotl.in/H169XXRp7 for very simple example