Files
kotlin-fork/idea/testData/inspectionsLocal/replaceGuardClauseWithFunctionCall/checkNotNull/basic.kt
T
2019-07-08 16:36:18 +03:00

5 lines
140 B
Kotlin
Vendored

// FIX: Replace with 'checkNotNull()' call
// WITH_RUNTIME
fun test(foo: Int?) {
<caret>if (foo == null) throw IllegalStateException()
}