hey, does anybody know why `requireNotNull` doesn'...
# announcements
g
hey, does anybody know why
requireNotNull
doesn't perform a smart-cast on its value? its inlined functions all the way down, so
Copy code
fun things(val x: Param?){
  requireNotNull(x)
}
is transformed into
Copy code
fun things(val x: Param?){
  if(x == null) {
    //...
    throw IllegalArgumentException() 
  } 
}