Files
kotlin-fork/compiler/testData/psi/contracts/SimpleFunctionWithContract.kt
T

4 lines
104 B
Kotlin
Vendored

fun foo(s: String?) contract [returns() implies (s != null)] {
s ?: throw NullArgumentException()
}