[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
@@ -5,5 +5,5 @@ interface WithCopy<T> {
}
data class Test(val str: String) : WithCopy<String> {
override fun copy(str: String = this.str) = Test(str)
}
override fun copy(str: String = <!DEFAULT_VALUE_NOT_ALLOWED_IN_OVERRIDE!>this.str<!>) = Test(str)
}