Parcelize: Add the Parcelize compiler plugin with sources extracted from Android Extensions plugin (KT-40030)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
@file:JvmName("TestKt")
|
||||
package test
|
||||
|
||||
import kotlinx.parcelize.*
|
||||
import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
|
||||
@Parcelize
|
||||
open class Base(val a: String) : Parcelable
|
||||
|
||||
@Parcelize
|
||||
class Inh(var b: Int) : Base(""), Parcelable
|
||||
|
||||
fun box(): String {
|
||||
Inh(0)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user