Kotlin 2.0.20. The compiler warns about the behavior change on the data class declaration and on illegal copy method usages (illegal usages are those that will become invisible by the end of the migration).... Phase 2. (Supposedly Kotlin 2.1 or Kotlin 2.2). The warnings turn into errors. Keep in mind that the compiler still generates public copy under the hood.... Phase 3. (Supposedly Kotlin 2.2 or Kotlin 2.3). The default changes. Unless ExposedCopyVisibility is used, the generated copy method has the same visibility as the primary constructor.... 出典: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-consistent-copy-visibility/ 7