Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/native/privateStatic.kt
T
2014-12-16 16:23:35 +03:00

24 lines
409 B
Kotlin

import kotlin.jvm.*
import kotlin.platform.*
class C {
class object {
private platformStatic native fun foo()
}
fun bar() {
foo()
}
}
fun box(): String {
try {
C().bar()
return "Link error expected"
}
catch (e: java.lang.UnsatisfiedLinkError) {
if (e.getMessage() != "C.foo()V") return "Fail 1: " + e.getMessage()
}
return "OK"
}