[FIR] Implement DEFAULT_VALUE_NOT_ALLOWED_IN_OVERRIDE diagnostic

#KT-59409 Fixed
This commit is contained in:
Kirill Rakhman
2023-07-21 17:06:42 +02:00
committed by Space Team
parent d93ffe0aec
commit 53ff4584d4
12 changed files with 47 additions and 51 deletions
@@ -1,13 +0,0 @@
open class A {
open fun foo(a : Int) {}
}
class C : A() {
override fun foo(a : Int = 1) {
}
}
class D : A() {
override fun foo(a : Int = 1) {
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
open class A {
open fun foo(a : Int) {}
}