Files
Andrey Cherkasov 9edfe9f3fe [kotlin] Port RemoveDefaultParameterValueFix to K2
This quick fix is for the DEFAULT_VALUE_NOT_ALLOWED_IN_OVERRIDE error.

^KTIJ-29521

GitOrigin-RevId: 1516d42144ecc3e3c49f711419b42101655fb67c
2024-06-05 13:26:38 +00:00

15 lines
439 B
Kotlin

// "Remove default parameter value" "true"
// DISABLE-ERRORS
interface Foo {
fun test(x: Int, y: Int)
}
expect class Bar : Foo {
override fun test(x: Int, y: Int)
}
actual class Bar : Foo {
actual override fun test(x: Int, y: Int = 1<caret>) {}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveDefaultParameterValueFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveDefaultParameterValueFix