Files
kotlin-fork/compiler/testData/diagnostics/tests/override/DefaultParameterValueInOverride.kt
T
2023-07-25 11:25:43 +00:00

15 lines
273 B
Kotlin
Vendored

// FIR_IDENTICAL
open class A {
open fun foo(a : Int) {}
}
class C : A() {
override fun foo(a : Int = <!DEFAULT_VALUE_NOT_ALLOWED_IN_OVERRIDE!>1<!>) {
}
}
class D : A() {
override fun foo(a : Int = <!DEFAULT_VALUE_NOT_ALLOWED_IN_OVERRIDE!>1<!>) {
}
}