Fix AST/PSI structure for context receivers in function types

Having CONTEXT_RECEIVER_LIST inside FUNCTION_TYPE_RECEIVER looks a bit hacky
This commit is contained in:
Denis.Zharkov
2022-02-17 13:22:52 +03:00
committed by teamcity
parent a89680fb34
commit 4379460177
4 changed files with 285 additions and 299 deletions
@@ -364,7 +364,7 @@ class TypeResolver(
override fun visitFunctionType(type: KtFunctionType) {
val receiverTypeRef = type.receiverTypeReference
val receiverType = if (receiverTypeRef?.typeElement == null) null else resolveType(c.noBareTypes(), receiverTypeRef)
val receiverType = if (receiverTypeRef == null) null else resolveType(c.noBareTypes(), receiverTypeRef)
val contextReceiverList = type.contextReceiverList
val contextReceiversTypes = if (contextReceiverList != null) {