Files
Vladimir Dolzhenko 963bb6ef53 [kotlin] Fix types inlay hints
#KTIJ-28592 Fixed

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

8 lines
290 B
Kotlin

// "Add else branch" "false"
// ACTION: Enable option 'Local variable types' for 'Types' inlay hints
// ACTION: Replace property initializer with 'if' expression
// ERROR: 'if' must have both main and 'else' branches if used as an expression
fun foo(x: String?) {
val a = i<caret>f (
}