Files
openide/plugins/kotlin/idea/tests/testData/quickfix/when/addRemainingBranchesMissingRightBracket.kt
Vladimir Dolzhenko 963bb6ef53 [kotlin] Fix types inlay hints
#KTIJ-28592 Fixed

GitOrigin-RevId: 4530af4e59e621d9feb8f1100cdb709a3ff1b0e1
2024-01-24 22:19:13 +00:00

11 lines
300 B
Kotlin

// "Add remaining branches" "false"
// ACTION: Enable option 'Local variable types' for 'Types' inlay hints
// WITH_STDLIB
// ERROR: 'when' expression must be exhaustive, add necessary 'is B' branch or 'else' branch instead
sealed class A
class B : A()
fun test(a: A) {
val i = w<caret>hen (a) {