Files
Andrey Cherkasov 974728d187 [kotlin] Port AddFunModifierFix to K2
This quick fix is for the INTERFACE_AS_FUNCTION error.

^KTIJ-26890

GitOrigin-RevId: b103a61d16bd755106a08b3da53af96367dd37ba
2024-03-21 11:09:40 +00:00

13 lines
220 B
Kotlin

// "Add 'fun' modifier to 'I'" "true"
interface I {
fun f()
}
fun foo(i: I) {}
fun test() {
val x = foo(<caret>I {})
}
/* IGNORE_K2 */
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunModifierFix