[FE, PSI2IR] Pass context receivers when calling typealias constructor

This commit is contained in:
Anastasiya Shadrina
2021-11-17 05:14:30 +07:00
committed by TeamCityServer
parent fb99df235e
commit bd4e51f304
8 changed files with 63 additions and 5 deletions
@@ -311,9 +311,9 @@ public class LazyClassDescriptor extends ClassDescriptorBase implements ClassDes
.map(typeReference -> {
KotlinType kotlinType =
c.getTypeResolver().resolveType(getScopeForClassHeaderResolution(), typeReference, c.getTrace(), true);
return new ReceiverParameterDescriptorImpl(
return DescriptorFactory.createContextReceiverParameterForClass(
this,
new ContextClassReceiver(this, kotlinType, null),
kotlinType,
Annotations.Companion.getEMPTY()
);
}).collect(Collectors.toList());