Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/traits/noPrivateDelegation.kt
T
Ilya Matveev 1b553ebfaf backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
2017-01-20 14:04:04 +03:00

19 lines
331 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
interface Z{
private fun extension(): String {
return "OK"
}
}
object Z2 : Z {
}
fun box() : String {
val size = Class.forName("Z2").declaredMethods.size
if (size != 0) return "fail: $size"
return "OK"
}