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:
committed by
Yan Zhulanow
parent
f147b8d2b2
commit
dfff00d55f
@@ -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() {
|
||||
}
|
||||
Reference in New Issue
Block a user