groostav
06/18/2017, 11:50 PMrequireNotNull
doesn't perform a smart-cast on its value?
its inlined functions all the way down, so
fun things(val x: Param?){
requireNotNull(x)
}
is transformed into
fun things(val x: Param?){
if(x == null) {
//...
throw IllegalArgumentException()
}
}