mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
- test Jvm* annotations with wrong arguments - test JvmStatic annotation - test JvmName annotation
33 lines
372 B
Kotlin
Vendored
33 lines
372 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() {
|
|
|
|
}
|
|
}
|
|
} |