mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
29 lines
750 B
Kotlin
Vendored
29 lines
750 B
Kotlin
Vendored
package test
|
|
|
|
import kotlinx.android.parcel.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, <error descr="[PLUGIN_ERROR] 'Parcelable' constructor parameter should be 'val' or 'var'">secondName</error>: 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 <error descr="[PLUGIN_ERROR] 'Parcelable' should have a primary constructor">F</error> : Parcelable {
|
|
constructor(a: String) {
|
|
println(a)
|
|
}
|
|
}
|