mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Move test loading Java TYPE_USE annotation to Java8 module
#KT-11454 Fixed
This commit is contained in:
23
compiler/testData/loadJava8/compiledJava/TypeAnnotations.java
vendored
Normal file
23
compiler/testData/loadJava8/compiledJava/TypeAnnotations.java
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
package test;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
public class TypeAnnotations {
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@interface A {
|
||||
String value() default "";
|
||||
}
|
||||
|
||||
interface G<T> {
|
||||
}
|
||||
|
||||
interface G2<A, B> {
|
||||
}
|
||||
|
||||
// Currently annotations on type parameters and arguments are not loaded from compiled code because of IDEA-153093
|
||||
// Once it will be fixed check if KT-11454 is ready to be resolved
|
||||
public interface MyClass<TT> {
|
||||
void f(G<@A String> p);
|
||||
|
||||
void f(G2<@A String, @A("abc") Integer> p);
|
||||
}
|
||||
}
|
||||
21
compiler/testData/loadJava8/compiledJava/TypeAnnotations.txt
vendored
Normal file
21
compiler/testData/loadJava8/compiledJava/TypeAnnotations.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
public open class TypeAnnotations {
|
||||
public constructor TypeAnnotations()
|
||||
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.TYPE}) public/*package*/ final annotation class A : kotlin.Annotation {
|
||||
public/*package*/ constructor A(/*0*/ value: kotlin.String = ...)
|
||||
public final val value: kotlin.String
|
||||
}
|
||||
|
||||
public/*package*/ interface G</*0*/ T : kotlin.Any!> {
|
||||
}
|
||||
|
||||
public/*package*/ interface G2</*0*/ A : kotlin.Any!, /*1*/ B : kotlin.Any!> {
|
||||
}
|
||||
|
||||
public interface MyClass</*0*/ TT : kotlin.Any!> {
|
||||
public abstract fun f(/*0*/ p0: test.TypeAnnotations.G2<kotlin.String!, kotlin.Int!>!): kotlin.Unit
|
||||
public abstract fun f(/*0*/ p0: test.TypeAnnotations.G<kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user