95ec2448eb
If a method comes from Java and is annotated as returning NotNull, after calling it we should check if it actually returned something other than null. Introduce checkReturnedValueIsNotNull() in jet/runtime/Intrinsics which does exactly that. CallableMethod's invoke() and invokeDefault() are now private, use asserted versions instead
5 lines
65 B
Kotlin
5 lines
65 B
Kotlin
fun box(): String {
|
|
checkAssertions(false)
|
|
return "OK"
|
|
}
|