Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/function.kt
T
Anastasiya Shadrina 3f50b675b1 [Tests] Add irText tests
2021-12-02 20:24:25 +03:00

17 lines
174 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
// IGNORE_BACKEND_FIR: JVM_IR
class C {
val c = 42
}
context(C)
fun foo() {
c
}
fun bar(c: C) {
with(c) {
foo()
}
}