blob: 030e02e2e428f2de155419342d33de8dd6e0ecab [file] [log] [blame]
// !LANGUAGE: +InlineClasses
inline class Foo(val c: Char) {
companion object {
val prop = "O"
const val constVal = 1
fun funInCompanion(): String = "K"
}
fun simple() {
prop
constVal
funInCompanion()
}
fun asResult(): String = prop + constVal + funInCompanion() + c
}
fun box(): String {
val r = Foo('2')
if (r.asResult() != "O1K2") return "fail"
return "OK"
}