mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
22 lines
840 B
Kotlin
Vendored
22 lines
840 B
Kotlin
Vendored
package test
|
|
|
|
import kotlinx.android.parcel.Parcelize
|
|
import android.os.Parcelable
|
|
import android.os.Parcel
|
|
|
|
@Parcelize
|
|
class A(val a: String) : Parcelable {
|
|
<error descr="[PLUGIN_ERROR] Overriding 'writeToParcel' is not allowed. Use 'Parceler' companion object instead">override</error> fun writeToParcel(p: Parcel?, flags: Int) {}
|
|
override fun describeContents() = 0
|
|
}
|
|
|
|
@Parcelize
|
|
class B(val a: String) : Parcelable {
|
|
<error descr="[PLUGIN_ERROR] Overriding 'writeToParcel' is not allowed. Use 'Parceler' companion object instead">override</error> fun writeToParcel(p: Parcel?, flags: Int) {}
|
|
}
|
|
|
|
@Parcelize
|
|
class C(val a: String) : Parcelable {
|
|
<error descr="[PLUGIN_ERROR] Overriding 'writeToParcel' is not allowed. Use 'Parceler' companion object instead">override</error> fun writeToParcel(p: Parcel, flags: Int) {}
|
|
}
|