mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
21 lines
554 B
Kotlin
21 lines
554 B
Kotlin
import test.*
|
|
|
|
fun testClassObjectCall(): String {
|
|
return InlineAll.inline({"classobject"})
|
|
}
|
|
|
|
fun testInstanceCall(): String {
|
|
val inlineX = InlineAll()
|
|
return inlineX.inline({"instance"})
|
|
}
|
|
|
|
fun testPackageCall(): String {
|
|
return inline({"package"})
|
|
}
|
|
|
|
fun box(): String {
|
|
if (testClassObjectCall() != "classobject") return "test1: ${testClassObjectCall()}"
|
|
if (testInstanceCall() != "instance") return "test2: ${testInstanceCall()}"
|
|
if (testPackageCall() != "package") return "test3: ${testPackageCall()}"
|
|
return "OK"
|
|
} |