[LC] add tests on type parameter annotations
^KT-65112
This commit is contained in:
committed by
Space Team
parent
d5705af8b1
commit
3e3c932bf6
+3
@@ -0,0 +1,3 @@
|
||||
public final class C /* one.C*/<T> {
|
||||
public C();// .ctor()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// one.C
|
||||
package one
|
||||
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER)
|
||||
annotation class Anno
|
||||
|
||||
class C<@Anno T>
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
public abstract interface C /* one.C*/<T> {
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// one.C
|
||||
package one
|
||||
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER)
|
||||
annotation class Anno
|
||||
|
||||
interface C<@Anno T>
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class C /* one.C*/ {
|
||||
public C();// .ctor()
|
||||
|
||||
public final <T> void foo(T);// <T> foo(T)
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// one.C
|
||||
package one
|
||||
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER)
|
||||
annotation class Anno
|
||||
|
||||
class C {
|
||||
fun <@Anno T> foo(t: T) {
|
||||
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public final class C /* one.C*/ {
|
||||
public C();// .ctor()
|
||||
|
||||
public final <T> int getFoo(T);// <T> getFoo(T)
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class C /* one.C*/ {
|
||||
public C();// .ctor()
|
||||
|
||||
public final <T> int getFoo(@org.jetbrains.annotations.NotNull() T);// <T> getFoo(T)
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// one.C
|
||||
package one
|
||||
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER)
|
||||
annotation class Anno
|
||||
|
||||
class C {
|
||||
val <@Anno T> T.foo get() = 1
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class C /* one.C*/ {
|
||||
public C();// .ctor()
|
||||
|
||||
public final <T> int getFoo(T);// <T> getFoo(T)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class FunctionTypeParameterAnnotationKt /* one.FunctionTypeParameterAnnotationKt*/ {
|
||||
public static final <T> void foo(T);// <T> foo(T)
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// one.FunctionTypeParameterAnnotationKt
|
||||
package one
|
||||
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER)
|
||||
annotation class Anno
|
||||
|
||||
fun <@Anno T> foo(t: T) {
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class PropertyTypeParameterAnnotationKt /* one.PropertyTypeParameterAnnotationKt*/ {
|
||||
public static final <T> int getFoo(T);// <T> getFoo(T)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class PropertyTypeParameterAnnotationKt /* one.PropertyTypeParameterAnnotationKt*/ {
|
||||
public static final <T> int getFoo(@org.jetbrains.annotations.NotNull() T);// <T> getFoo(T)
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// one.PropertyTypeParameterAnnotationKt
|
||||
package one
|
||||
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER)
|
||||
annotation class Anno
|
||||
|
||||
val <@Anno T> T.foo get() = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class PropertyTypeParameterAnnotationKt /* one.PropertyTypeParameterAnnotationKt*/ {
|
||||
public static final <T> int getFoo(T);// <T> getFoo(T)
|
||||
}
|
||||
Reference in New Issue
Block a user