40 lines
468 B
Kotlin
Vendored
40 lines
468 B
Kotlin
Vendored
package app
|
|
|
|
import lib.*
|
|
|
|
fun useI(i: I) {
|
|
i.iProperty
|
|
i.iMethod()
|
|
}
|
|
|
|
fun useA(a: A) {
|
|
a.iProperty
|
|
a.iMethod()
|
|
|
|
a.aProperty
|
|
a.aMethod()
|
|
a.aInlineMethod()
|
|
A.aConst
|
|
}
|
|
|
|
fun useB(b: B) {
|
|
b.iProperty
|
|
b.iMethod()
|
|
|
|
b.aProperty
|
|
b.aMethod()
|
|
b.aInlineMethod()
|
|
|
|
b.bProperty
|
|
b.bMethod()
|
|
b.bInlineMethod()
|
|
B.bConst
|
|
}
|
|
|
|
fun runAppAndReturnOk(): String {
|
|
useI(A())
|
|
useA(A())
|
|
useB(B())
|
|
|
|
return "OK"
|
|
} |