1a8be635b9
#KT-10473 Fixed
21 lines
615 B
Kotlin
Vendored
21 lines
615 B
Kotlin
Vendored
package test
|
|
|
|
import kotlinx.android.parcel.*
|
|
import android.os.*
|
|
|
|
class Box(val value: String)
|
|
|
|
@Parcelize
|
|
class Foo(val box: Box): Parcelable {
|
|
companion object : Parceler<Foo> {
|
|
override fun create(parcel: Parcel) = Foo(Box(parcel.readString()))
|
|
|
|
override fun Foo.write(parcel: Parcel, flags: Int) {
|
|
parcel.writeString(box.value)
|
|
}
|
|
}
|
|
}
|
|
|
|
@Parcelize
|
|
class Foo2(val box: <error descr="[PLUGIN_ERROR] Type is not directly supported by 'Parcelize'. Annotate the parameter type with '@RawValue' if you want it to be serialized using 'writeValue()'">Box</error>): Parcelable
|