3ee8c5e469
This should be an error, but there is an issue with Java interop: Java parameters may change names or not have them.
14 lines
256 B
Plaintext
14 lines
256 B
Plaintext
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<!>) {
|
|
}
|
|
}
|