Files
kotlin-fork/backend.native/tests/external/codegen/box/statics/inlineCallsStaticMethod.kt
T
2017-03-13 15:31:46 +03:00

31 lines
450 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// FILE: Test.java
public class Test {
protected String data = "O";
protected Test() {
}
protected static String testStatic() {
return "K";
}
}
// FILE: test.kt
public inline fun test(): String {
val p = object : Test() {}
return p.data + Test.testStatic();
}
fun box(): String {
return test()
}