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

11 lines
197 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
// LANGUAGE_VERSION: 1.2
fun test(foo: Int?) {
<caret>if (foo == null) {
throw IllegalArgumentException("test")
}
bar(foo)
}
fun bar(i: Int) {}