Doesn't compile: `fun error(msg: () -> String):...
# announcements
e
Doesn't compile:
fun error(msg: () -> String): Unit = if (isErrorEnabled) error(msg.invoke())
Compiles:
fun error(msg: () -> String): Unit { if (isErrorEnabled) error(msg.invoke()) }