https://kotlinlang.org logo
#announcements
Title
# announcements
d

dean

07/01/2016, 8:40 PM
Really what the first example is:
Copy code
fun error(msg: () -> String): Unit {
    return if (isErrorEnabled) error(msg.invoke()) 
}
This is no bueno, as you can't return a simple
if
statement!
👍 1