9dda5e4fcd
KT-56177
31 lines
703 B
Kotlin
Vendored
31 lines
703 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// WITH_STDLIB
|
|
package test
|
|
|
|
import kotlinx.parcelize.Parcelize
|
|
import android.os.Parcelable
|
|
|
|
@Parcelize
|
|
class A : Parcelable
|
|
|
|
@Parcelize
|
|
class B(val firstName: String, val secondName: String) : Parcelable
|
|
|
|
@Parcelize
|
|
class C(val firstName: String, <!PARCELABLE_CONSTRUCTOR_PARAMETER_SHOULD_BE_VAL_OR_VAR!>secondName<!>: String) : Parcelable
|
|
|
|
@Parcelize
|
|
class D(val firstName: String, vararg val secondName: String) : Parcelable
|
|
|
|
@Parcelize
|
|
class E(val firstName: String, val secondName: String) : Parcelable {
|
|
constructor() : this("", "")
|
|
}
|
|
|
|
@Parcelize
|
|
class <!PARCELABLE_SHOULD_HAVE_PRIMARY_CONSTRUCTOR!>F<!> : Parcelable {
|
|
constructor(a: String) {
|
|
println(a)
|
|
}
|
|
}
|