Parcelize: Fall back to readValue/writeValue if no other serializers are available
This commit is contained in:
committed by
Yan Zhulanow
parent
8d364a8a1a
commit
f93749ae6a
Vendored
+13
@@ -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
|
||||
Reference in New Issue
Block a user