Add compiler diagnostic tests for parcelize checkers
This commit is contained in:
committed by
teamcityserver
parent
b84ee64994
commit
40d8451698
+5
-5
@@ -4,22 +4,22 @@ import kotlinx.parcelize.Parcelize
|
||||
import android.os.Parcelable
|
||||
|
||||
@Parcelize
|
||||
interface <error descr="[PARCELABLE_SHOULD_BE_CLASS] 'Parcelable' should be a class">Intf</error> : Parcelable
|
||||
interface <!PARCELABLE_SHOULD_BE_CLASS!>Intf<!> : Parcelable
|
||||
|
||||
@Parcelize
|
||||
object <error descr="[NO_PARCELABLE_SUPERTYPE] No 'Parcelable' supertype">Obj</error>
|
||||
object <!NO_PARCELABLE_SUPERTYPE!>Obj<!>
|
||||
|
||||
class A {
|
||||
@Parcelize
|
||||
companion <error descr="[NO_PARCELABLE_SUPERTYPE] No 'Parcelable' supertype">object</error> {
|
||||
companion <!NO_PARCELABLE_SUPERTYPE!>object<!> {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
|
||||
@Parcelize
|
||||
enum class <error descr="[NO_PARCELABLE_SUPERTYPE] No 'Parcelable' supertype">Enum</error> {
|
||||
enum class <!NO_PARCELABLE_SUPERTYPE!>Enum<!> {
|
||||
WHITE, BLACK
|
||||
}
|
||||
|
||||
@Parcelize
|
||||
annotation class <error descr="[PARCELABLE_SHOULD_BE_CLASS] 'Parcelable' should be a class">Anno</error>
|
||||
annotation class <!PARCELABLE_SHOULD_BE_CLASS!>Anno<!>
|
||||
|
||||
Reference in New Issue
Block a user