8cdddbfd9d
There is one of checks left unimplemented (FirParcelizePropertyChecker.checkParcelableClassProperty) because it requires huge commonization of detecting which type can be serialized and which not, which is not prioritized job for now
27 lines
475 B
Kotlin
Vendored
27 lines
475 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
package test
|
|
|
|
import kotlinx.parcelize.Parcelize
|
|
import android.os.Parcelable
|
|
|
|
@Parcelize
|
|
interface <!PARCELABLE_SHOULD_BE_CLASS!>Intf<!> : Parcelable
|
|
|
|
@Parcelize
|
|
object <!NO_PARCELABLE_SUPERTYPE!>Obj<!>
|
|
|
|
class A {
|
|
@Parcelize
|
|
companion <!NO_PARCELABLE_SUPERTYPE!>object<!> {
|
|
fun foo() {}
|
|
}
|
|
}
|
|
|
|
@Parcelize
|
|
enum class <!NO_PARCELABLE_SUPERTYPE!>Enum<!> {
|
|
WHITE, BLACK
|
|
}
|
|
|
|
@Parcelize
|
|
annotation class <!PARCELABLE_SHOULD_BE_CLASS!>Anno<!>
|