Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt
T
Alexander Udalov 9f67fe2fe3 Adapt CompileKotlinAgainstKotlin test to black box format
Rename/remove some obsolete test cases
2016-03-02 15:47:35 +03:00

31 lines
337 B
Kotlin
Vendored

// FILE: A.kt
package lib
@JvmName("bar")
fun foo() = "foo"
var v: Int = 1
@JvmName("vget")
get
@JvmName("vset")
set
fun consumeInt(x: Int) {}
class A {
val OK: String = "OK"
@JvmName("OK") get
}
// FILE: B.kt
import lib.*
fun box(): String {
foo()
v = 1
consumeInt(v)
return A().OK
}