Files
kotlin/compiler/testData/codegen/boxWithJava/inline.kt
2016-03-02 15:47:38 +03:00

28 lines
346 B
Kotlin
Vendored

// 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()
}