mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Synthesized 'copy' in data classes cannot override anything since 1.3
Synthesized 'copy' introduces default values for parameters, which is prohibited for regular overrides. Report warning in language version 1.2-, error in 1.3+.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// LANGUAGE_VERSION: 1.1
|
||||
|
||||
fun box(): String {
|
||||
val a: A = B(1)
|
||||
a.copy(1)
|
||||
|
||||
Reference in New Issue
Block a user