Parcelize: Fall back to readValue/writeValue if no other serializers are available

This commit is contained in:
Steven Schäfer
2020-05-12 16:04:57 +02:00
committed by Yan Zhulanow
parent 8d364a8a1a
commit f93749ae6a
6 changed files with 172 additions and 1 deletions
@@ -0,0 +1,13 @@
// This test checks that we create calls to readValue/writeValue if there is no other
// way of serializing properties. In this case, this would fail at runtime.
// CURIOUS_ABOUT writeToParcel, createFromParcel, <clinit>, describeContents
// WITH_RUNTIME
import kotlinx.android.parcel.*
import android.os.Parcelable
class Value(val x: Int)
@Parcelize
class Test(val value: Value) : Parcelable