FIR2IR: generate annotations on fake override parameters #KT-53208 Fixed
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
// SKIP_KLIB_TEST
|
||||
// WITH_REFLECT
|
||||
// FULL_JDK
|
||||
|
||||
fun box(): String {
|
||||
val impl = object : I {
|
||||
}
|
||||
|
||||
val method = impl.javaClass.getMethod("m", String::class.java)
|
||||
val parameter = method.parameters[0]
|
||||
|
||||
val size = parameter.annotations.size
|
||||
if (size == 1) return "OK"
|
||||
return "ERR: $size"
|
||||
}
|
||||
|
||||
annotation class Ann
|
||||
|
||||
interface I {
|
||||
fun m(@Ann s: String) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user