Files
kotlin/compiler/testData/codegen/boxWithStdlib/platformNames/propertyName.kt
2014-06-10 18:21:36 +04:00

14 lines
195 B
Kotlin

import kotlin.platform.*
var v: Int = 1
[platformName("vget")]
get
[platformName("vset")]
set
fun box(): String {
v += 1
if (v != 2) return "Fail: $v"
return "OK"
}