f0fba7be64
#KT-57171 Fixed
18 lines
220 B
Kotlin
Vendored
18 lines
220 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
// TARGET_BACKEND: JVM_IR
|
|
|
|
class Outer {
|
|
val x: Int = 1
|
|
}
|
|
|
|
context(Outer)
|
|
class Inner(arg: Any) {
|
|
fun bar() = x
|
|
}
|
|
|
|
fun f(outer: Outer) {
|
|
with(outer) {
|
|
Inner(3)
|
|
}
|
|
}
|