[FIR] Add messages for JvmRecord diagnostics

Also fix some tests
This commit is contained in:
Andrey Zinovyev
2021-08-20 10:24:27 +03:00
committed by Space
parent a3049b35c2
commit 865fccdd29
4 changed files with 42 additions and 3 deletions
@@ -12,6 +12,6 @@ data class BasicDataRecord(val x: String)
@JvmRecord
data class VarInConstructor(<!JVM_RECORD_NOT_VAL_PARAMETER!>var x: String<!>)
<!NON_DATA_CLASS_JVM_RECORD!>@JvmRecord<!>
<!ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED!>class BasicRecordWithSuperClass<!>(val x: String) : Record()
@JvmRecord
<!ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED!>class BasicRecordWithSuperClass<!>(val x: String) : <!ILLEGAL_JAVA_LANG_RECORD_SUPERTYPE!>Record<!>()
@@ -25,3 +25,14 @@ package
public open override /*1*/ /*synthesized*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
}
@kotlin.jvm.JvmRecord public final data class VarInConstructor : java.lang.Record {
public constructor VarInConstructor(/*0*/ x: kotlin.String)
public final var x: kotlin.String
public final operator /*synthesized*/ fun component1(): kotlin.String
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.String = ...): VarInConstructor
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*synthesized*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
}