mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
10 lines
445 B
Kotlin
10 lines
445 B
Kotlin
// "Surround with null check" "true"
|
|
// ERROR: 'when' expression must be exhaustive, add necessary 'false' branch or 'else' branch instead
|
|
|
|
fun foo(arg: Int?, flag: Boolean) {
|
|
when (flag) {
|
|
true -> arg<caret>.inc()
|
|
}
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.SurroundWithNullCheckFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.SurroundWithNullCheckFixFactory$SurroundWithNullCheckFix |