Move parcelize checkers testdata to :parcelize-compiler module

This commit is contained in:
Dmitriy Novozhilov
2021-10-26 11:16:16 +03:00
committed by teamcityserver
parent a093052b77
commit b84ee64994
15 changed files with 0 additions and 0 deletions
@@ -0,0 +1,20 @@
package test
import kotlinx.parcelize.*
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="[PARCELABLE_TYPE_NOT_SUPPORTED] 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