Files
kotlin/plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/wrongAnnotationTarget.kt
2018-07-12 20:36:37 +03:00

26 lines
637 B
Kotlin
Vendored

package test
import kotlinx.android.parcel.Parcelize
import android.os.Parcelable
@Parcelize
interface <error descr="[PLUGIN_ERROR] 'Parcelable' should be a class">Intf</error> : Parcelable
@Parcelize
object <error descr="[PLUGIN_ERROR] No 'Parcelable' supertype">Obj</error>
class A {
@Parcelize
companion <error descr="[PLUGIN_ERROR] No 'Parcelable' supertype">object</error> {
fun foo() {}
}
}
@Parcelize
enum class <error descr="[PLUGIN_ERROR] No 'Parcelable' supertype">Enum</error> {
WHITE, BLACK
}
@Parcelize
annotation class <error descr="[PLUGIN_ERROR] 'Parcelable' should be a class">Anno</error>