blob: df9d2db1f135181aea433485f812e4c4c6f6dea5 [file]
// LANGUAGE: +ContextParameters
// FILE: lib.kt
class A
class Example {
context(a: A)
inline fun fn(x: Int) {}
}
// FILE: main.kt
fun test() {
with(A()) {
Example().fn(1)
}
}
fun box(): String {
test()
return "OK"
}