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

8 lines
153 B
Kotlin
Vendored

// WITH_RUNTIME
fun test(flag: Boolean) {
<caret>if (!flag) throw IllegalArgumentException()
else {
println(1)
println(2)
}
}