mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
because source-based LightAnnotations produces annotation values from arguments in sources even when they are invalid as parameters. Thus they could be inconsistenct with "compiled" ones and it is not an error.
35 lines
399 B
Kotlin
Vendored
35 lines
399 B
Kotlin
Vendored
// A
|
|
|
|
class A {
|
|
companion object {
|
|
@JvmName("realName")
|
|
fun f1() {
|
|
|
|
}
|
|
|
|
@JvmName(1)
|
|
fun f2() {}
|
|
|
|
@JvmStatic(3)
|
|
fun f3() {
|
|
|
|
}
|
|
|
|
@JvmName
|
|
fun f4() {
|
|
|
|
}
|
|
|
|
@JvmOverloads(1, 2, 3, 4)
|
|
fun f5() {
|
|
|
|
}
|
|
|
|
@JvmOverloads("arg")
|
|
fun f6() {
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
// LAZINESS:NoConsistency |