Files
kotlin-fork/idea/testData/inspectionsLocal/replaceGuardClauseWithFunctionCall/usedAsExpression.kt
T

7 lines
136 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun test(flag: Boolean): Int {
return <caret>if (!flag) throw IllegalArgumentException() else 1
}