mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
13 lines
535 B
Plaintext
13 lines
535 B
Plaintext
// "Wrap expression in parentheses" "true"
|
|
// ERROR: 'when' expression must be exhaustive, add necessary 'true', 'false' branches or 'else' branch instead
|
|
interface A {
|
|
operator fun contains(other: A): Boolean
|
|
}
|
|
|
|
fun test(x: A, b: Boolean) {
|
|
when (b) {
|
|
(x in x) -> {}
|
|
}
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ConfusingExpressionInWhenBranchFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ConfusingBranchConditionErrorFixFactories$WrapExpressionInParenthesesFixFactory |