KT-51277 Fix matching of context receivers and parameter desriptors
This commit is contained in:
committed by
Space Team
parent
399ea1092e
commit
0b38ab4f01
@@ -0,0 +1,15 @@
|
||||
// !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"
|
||||
}
|
||||
Reference in New Issue
Block a user