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

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

15 lines
476 B
Kotlin

// "Reorder parameters" "false"
// ACTION: Add '@JvmOverloads' annotation to function 'bar'
// ACTION: Convert to block body
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Enable option 'Function return types' for 'Types' inlay hints
// ACTION: Flip ',' (may change semantics)
// ACTION: Put parameters on one line
// ACTION: Specify return type explicitly
fun foo(b: Int) {
fun bar(
a: Int = b<caret>,
c: Int = 2
) = Unit
}