[FIR] Fix deserialization of generic context receivers

We need to pass the local deserialization context so that generic
type parameters can be referenced.

#KT-62607 Fixed
This commit is contained in:
Kirill Rakhman
2023-10-26 15:10:09 +02:00
committed by Space Team
parent 45a1cc1a4a
commit ef78d4b95a
17 changed files with 87 additions and 5 deletions
@@ -0,0 +1 @@
-XXLanguage:+ContextReceivers
@@ -0,0 +1,8 @@
package test
fun test() {
with("") {
foo()
foo
}
}
@@ -0,0 +1,11 @@
================ Step #1 =================
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/test/BarKt.class
End of files
Compiling files:
src/bar.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,7 @@
package test
context(T)
fun <T> foo() {}
context(T)
val <T> T.foo get() = 1