Files
kotlin-fork/plugins/parcelize/parcelize-compiler/testData/codegen/primitiveArrays.kt
T
Ivan Kylchik c7435ba760 Replace all occurrences of WITH_RUNTIME with WITH_STDLIB
We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
2021-11-17 15:26:38 +03:00

29 lines
641 B
Kotlin
Vendored

// CURIOUS_ABOUT: writeToParcel, createFromParcel
// WITH_STDLIB
// TARGET_BACKEND: JVM_IR
/*
* Serializing of short arrays is not properly supported in old frontend, so this
* test is on only for JVM IR backend
*/
import kotlinx.parcelize.*
import android.os.Parcelable
@Parcelize
data class Test(
val a: ByteArray,
val b: CharArray,
val c: ShortArray,
val d: IntArray,
val e: LongArray,
val f: ByteArray?,
val g: CharArray?,
val h: ShortArray?,
val i: IntArray?,
val j: LongArray?,
val k: FloatArray,
val l: DoubleArray,
val m: FloatArray?,
val n: DoubleArray?
) : Parcelable