Parcelable: Add CREATOR field (and other generated declarations) in light classes (KT-19300, KT-19853)

This commit is contained in:
Yan Zhulanow
2017-12-16 01:45:54 +09:00
parent 90dff281ba
commit 145ddf3b1f
29 changed files with 129 additions and 66 deletions
@@ -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.*