Parcelize: Generate non-final 'writeToParcel()' and 'describeContents()' (#KT-24720)

This commit is contained in:
Yan Zhulanow
2018-06-18 19:28:15 +03:00
parent adf3057fea
commit 26ca7a140d
4 changed files with 33 additions and 5 deletions
@@ -0,0 +1,19 @@
// WITH_RUNTIME
@file:JvmName("TestKt")
package test
import kotlinx.android.parcel.*
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"
}