15 lines
206 B
Kotlin
Vendored
15 lines
206 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
// TARGET_BACKEND: JVM_IR
|
|
|
|
class C<T> {
|
|
fun foo() = 1
|
|
}
|
|
|
|
context(C<*>) fun test() = foo()
|
|
|
|
fun box(): String {
|
|
with(C<Int>()) {
|
|
test()
|
|
}
|
|
return "OK"
|
|
} |