KT-26540: Support generated superclasses in KAPT

https://youtrack.jetbrains.net/issue/KT-26540

Included an integration test that relies on a generated superclass.
This commit is contained in:
Martin Petrov
2018-09-03 22:28:14 -04:00
committed by Yan Zhulanow
parent f147b8d2b2
commit dfff00d55f
5 changed files with 71 additions and 3 deletions
@@ -0,0 +1,30 @@
package error;
public final class NonExistentClass {
}
////////////////////
package test;
import java.lang.System;
@kotlin.Metadata()
@MyAnnotation()
public final class ClassWithParent extends FooBar {
public ClassWithParent() {
super();
}
}
////////////////////
package test;
import java.lang.System;
@kotlin.Metadata()
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public abstract @interface MyAnnotation {
}
@@ -0,0 +1,7 @@
package test
internal annotation class MyAnnotation
@MyAnnotation
internal class ClassWithParent: FooBar() {
}