mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
16 lines
458 B
Kotlin
Vendored
16 lines
458 B
Kotlin
Vendored
// "Annotate containing class with ''@Parcelize''" "true"
|
|
// ERROR: Class 'Foo' should be annotated with '@Parcelize'
|
|
// WITH_RUNTIME
|
|
|
|
package com.myapp.activity
|
|
|
|
import android.os.*
|
|
import kotlinx.android.parcel.*
|
|
|
|
object StringParceler : Parceler<String> {
|
|
override fun create(parcel: Parcel) = TODO()
|
|
override fun String.write(parcel: Parcel, flags: Int) = TODO()
|
|
}
|
|
|
|
@Parcelize
|
|
class Foo(@<caret>TypeParceler<String, StringParceler> val a: String) |