JvmName should have @Retention(AnnotationRetention.BINARY)
(TODO: fix JVM BE)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
class A {
|
||||
val OK: String = "OK"
|
||||
@JvmName("OK") get
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
if (A().OK != "OK") throw java.lang.AssertionError()
|
||||
}
|
||||
Reference in New Issue
Block a user