Fix metadata deserialization for context receivers with type table
In DeserializedClassDescriptor and MemberDeserializer, only the `contextReceiverTypeList` field was used, and not `contextReceiverTypeIdList` which is used when `-Xuse-type-table` is enabled. The convention is to use a bunch of utilities declared in `protoTypeTableUtil.kt` which deal with both methods of reading types. Also, simplify the deserialization code in FIR (which was correct for some reason).
This commit is contained in:
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
context(R|test/A|)
|
||||
public final fun g(): R|kotlin/Unit|
|
||||
|
||||
context(R|test/B|)
|
||||
public final val h: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
public abstract interface A : R|kotlin/Any| {
|
||||
}
|
||||
|
||||
public abstract interface B : R|kotlin/Any| {
|
||||
}
|
||||
|
||||
context(R|test/A|)
|
||||
public final class C : R|kotlin/Any| {
|
||||
context(R|test/B|)
|
||||
public final fun f(): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|test/C|
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user