[Tests] Add irText tests
This commit is contained in:
committed by
TeamCityServer
parent
a3cf1a11bf
commit
3f50b675b1
@@ -0,0 +1,17 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
class C {
|
||||
val c = 42
|
||||
}
|
||||
|
||||
context(C)
|
||||
fun foo() {
|
||||
c
|
||||
}
|
||||
|
||||
fun bar(c: C) {
|
||||
with(c) {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user