[FIR] Implement DEFAULT_VALUE_NOT_ALLOWED_IN_OVERRIDE diagnostic
#KT-59409 Fixed
This commit is contained in:
committed by
Space Team
parent
d93ffe0aec
commit
53ff4584d4
compiler/testData/diagnostics/tests/dataClasses/dataClassExplicitlyOverridingCopyWithDefaults.fir.kt
Vendored
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user