mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Add test for KT-14751
This commit is contained in:
21
compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.java
vendored
Normal file
21
compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.java
vendored
Normal file
@@ -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 {}
|
||||
|
||||
}
|
||||
13
compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.txt
vendored
Normal file
13
compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.txt
vendored
Normal file
@@ -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