You're right. This code compiles fine for me thoug...
# announcements
c
You're right. This code compiles fine for me though:
Copy code
fun test(foo: String?) {
            if (foo == null) return
            foo.capitalize()
        }