[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:
committed by
Space Team
parent
45a1cc1a4a
commit
ef78d4b95a
+1
@@ -0,0 +1 @@
|
||||
-XXLanguage:+ContextReceivers
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
fun test() {
|
||||
with("") {
|
||||
foo()
|
||||
foo
|
||||
}
|
||||
}
|
||||
+11
@@ -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
|
||||
Reference in New Issue
Block a user