示例:
fun test(foo: Int?) { if (foo == null) throw IllegalArgumentException("foo") // replaceable clause }
在应用快速修复后:
fun test(foo: Int?) { checkNotNull(foo) }