Deprecations: data class should now have at least one primary constructor parameter, parameters should be val / var and not vararg.
This commit is contained in:
@@ -3,10 +3,10 @@ data class A1(val x: String) {
|
||||
constructor(): this("")
|
||||
}
|
||||
|
||||
data class A2() {
|
||||
constructor(x: String): this()
|
||||
data class A2(val y: String, val z: Int) {
|
||||
constructor(x: String): this(x, 0)
|
||||
}
|
||||
|
||||
data class <!PRIMARY_CONSTRUCTOR_REQUIRED_FOR_DATA_CLASS!>A3<!> {
|
||||
data class <!PRIMARY_CONSTRUCTOR_REQUIRED_FOR_DATA_CLASS, DATA_CLASS_WITHOUT_PARAMETERS!>A3<!> {
|
||||
constructor()
|
||||
}
|
||||
|
||||
@@ -12,9 +12,13 @@ package
|
||||
}
|
||||
|
||||
@kotlin.data() public final class A2 {
|
||||
public constructor A2()
|
||||
public constructor A2(/*0*/ x: kotlin.String)
|
||||
public final /*synthesized*/ fun copy(): A2
|
||||
public constructor A2(/*0*/ y: kotlin.String, /*1*/ z: kotlin.Int)
|
||||
public final val y: kotlin.String
|
||||
public final val z: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.String
|
||||
public final /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ y: kotlin.String = ..., /*1*/ z: kotlin.Int = ...): A2
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user