[FIR] Record non-user type refs to resolved type refs
That `delegatedTypeRef` is needed for reporting errors on value
parameters of function types and errors about cyclic dependencies
between types
See 6f241c6d
This commit is contained in:
+3
@@ -47,6 +47,9 @@ class FirSpecificTypeResolverTransformer(
|
|||||||
source = typeRef.source
|
source = typeRef.source
|
||||||
type = resolvedType.takeIfAcceptable() ?: return typeRef.compose()
|
type = resolvedType.takeIfAcceptable() ?: return typeRef.compose()
|
||||||
annotations += typeRef.annotations
|
annotations += typeRef.annotations
|
||||||
|
if (typeRef !is FirUserTypeRef) {
|
||||||
|
delegatedTypeRef = typeRef
|
||||||
|
}
|
||||||
}.compose()
|
}.compose()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user