blob: afeec977248b9c7cc95383bac9fc399b450e9e09 [file]
// LANGUAGE: +CompanionBlocksAndExtensions
// DUMP_KLIB_ABI: DEFAULT
class A
class C
context(_: A)
companion fun C.func(s: String) = s
context(_: A)
companion val C.readonly
get() = "O"
context(_: A)
companion fun C.getOk(): String {
return readonly + "K"
}
fun box(): String {
return with(A()) {
C.func(C.getOk())
}
}