Add test for KT-14751
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package test;
|
||||
|
||||
// SKIP_IN_RUNTIME_TEST
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
public class InnerClassTypeAnnotation {
|
||||
|
||||
public class Inner {
|
||||
public Inner(@Foo String foo) {
|
||||
}
|
||||
}
|
||||
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target({ElementType.TYPE_USE})
|
||||
public @interface Foo {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
public open class InnerClassTypeAnnotation {
|
||||
public constructor InnerClassTypeAnnotation()
|
||||
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY) @kotlin.annotation.Target(allowedTargets = {AnnotationTarget.TYPE}) public final annotation class Foo : kotlin.Annotation {
|
||||
public constructor Foo()
|
||||
}
|
||||
|
||||
public open inner class Inner {
|
||||
public constructor Inner(/*0*/ @test.InnerClassTypeAnnotation.Foo p0: @test.InnerClassTypeAnnotation.Foo kotlin.String!)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user