Parcelable: Add CREATOR field (and other generated declarations) in light classes (KT-19300, KT-19853)
This commit is contained in:
Vendored
+19
@@ -1,6 +1,25 @@
|
||||
// CURIOUS_ABOUT writeToParcel, createFromParcel, <clinit>
|
||||
// WITH_RUNTIME
|
||||
|
||||
//FILE: test/JavaClass.java
|
||||
package test;
|
||||
|
||||
class JavaClass {
|
||||
void test() {
|
||||
// Here we test access to CREATOR
|
||||
Object o = Foo.CREATOR;
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: android/os/Parcelable.java
|
||||
package android.os;
|
||||
|
||||
public interface Parcelable {
|
||||
public static interface Creator<T> {}
|
||||
}
|
||||
|
||||
|
||||
//FILE: test.kt
|
||||
package test
|
||||
|
||||
import kotlinx.android.parcel.*
|
||||
|
||||
Reference in New Issue
Block a user