Add @JvmRecord diagnostics for open and enums

^KT-43677 In Progress
This commit is contained in:
Denis.Zharkov
2020-11-26 11:15:11 +03:00
parent bef50c0342
commit f6a3580c93
4 changed files with 48 additions and 1 deletions
@@ -22,7 +22,21 @@ class A4(<!JVM_RECORD_NOT_VAL_PARAMETER!>var name: String<!>)
class A5(vararg val name: String, <!JVM_RECORD_NOT_VAL_PARAMETER!><!UNUSED_PARAMETER!>y<!>: Int<!>)
@JvmRecord
class A6(
<!NON_FINAL_JVM_RECORD!>open<!> class A6(val x: String)
@JvmRecord
<!NON_FINAL_JVM_RECORD!>abstract<!> class A7(val x: String)
@JvmRecord
<!NON_FINAL_JVM_RECORD!>sealed<!> class A8(val x: String)
@JvmRecord
<!ENUM_JVM_RECORD!>enum<!> class A9(val x: String) {
X("");
}
@JvmRecord
class A10(
val x: String,
val y: Int,
vararg val z: Double,