5b3816cce5
treat it as a general one, introduce *_K1 and *_K2 variants for more specific ignoring
19 lines
222 B
Kotlin
Vendored
19 lines
222 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
// TARGET_BACKEND: JVM_IR
|
|
// IGNORE_BACKEND_K2: JVM_IR
|
|
// IGNORE_BACKEND: JVM
|
|
|
|
class C {
|
|
val c = 42
|
|
}
|
|
|
|
context(C)
|
|
fun foo() {
|
|
c
|
|
}
|
|
|
|
fun bar(c: C) {
|
|
with(c) {
|
|
foo()
|
|
}
|
|
} |