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

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

14 lines
454 B
Kotlin

// "Change 'y' to '*y'" "false"
// ACTION: Add 'toString()' call
// ACTION: Change parameter 'x' type of function 'foo' to 'List<String>'
// ACTION: Convert to block body
// ACTION: Create function 'foo'
// ACTION: Enable option 'Function return types' for 'Types' inlay hints
// DISABLE-ERRORS
// Fix this test case if https://youtrack.jetbrains.com/issue/KT-12663 is implemented
fun foo(vararg x: String) {}
fun bar(y: List<String>) = foo(y<caret>)