Files
kotlin/compiler/testData/asJava/lightClasses/compilationErrors/WrongAnnotations.kt
Pavel V. Talanov 955fe9e1e6 Light class tests: add tests
- test Jvm* annotations with wrong arguments
  - test JvmStatic annotation
  - test JvmName annotation
2017-03-15 20:52:24 +03:00

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() {
}
}
}