Java type annotations supported in LazyJavaTypeResolver

This commit is contained in:
Andrey Breslav
2015-05-07 21:58:22 +03:00
committed by Denis Zharkov
parent eaae88133c
commit c6b91b0f81
6 changed files with 45 additions and 2 deletions
@@ -0,0 +1,16 @@
package test;
import java.lang.annotation.*;
@Target(ElementType.TYPE_USE)
@interface A {
String value() default "";
}
interface G<T> {}
interface G2<A, B> {}
public interface TypeAnnotations<TT> {
void f(G<@A String> p);
void f(G2<@A String, @A Integer> p);
}
@@ -0,0 +1,6 @@
package test
public interface TypeAnnotations</*0*/ TT> {
public abstract fun f(/*0*/ p: test.G2<@[test.A()] kotlin.String!, @[test.A()] kotlin.Int!>!): kotlin.Unit
public abstract fun f(/*0*/ p: test.G<@[test.A()] kotlin.String!>!): kotlin.Unit
}