KT-51277 Fix matching of context receivers and parameter desriptors

This commit is contained in:
Pavel Mikhailovskii
2022-12-29 11:28:11 +00:00
committed by Space Team
parent 399ea1092e
commit 0b38ab4f01
4 changed files with 29 additions and 2 deletions
@@ -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"
}