Move test loading Java TYPE_USE annotation to Java8 module

#KT-11454 Fixed
This commit is contained in:
Denis Zharkov
2016-03-16 15:37:39 +03:00
parent 85329e59ca
commit 04eb5ff4f7
14 changed files with 267 additions and 38 deletions

View File

@@ -0,0 +1,21 @@
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> {
}
public interface MyClass<TT> {
void f(G<@A String> p);
void f(G2<@A String, @A("abc") Integer> p);
}
}

View 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*/ p: test.TypeAnnotations.G2<@test.TypeAnnotations.A() kotlin.String!, @test.TypeAnnotations.A(value = "abc") kotlin.Int!>!): kotlin.Unit
public abstract fun f(/*0*/ p: test.TypeAnnotations.G<@test.TypeAnnotations.A() kotlin.String!>!): kotlin.Unit
}
}