[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:
Dmitriy Novozhilov
2020-05-29 16:10:26 +03:00
parent 7d7b9262e7
commit f21d1e1c1b
@@ -47,6 +47,9 @@ class FirSpecificTypeResolverTransformer(
source = typeRef.source
type = resolvedType.takeIfAcceptable() ?: return typeRef.compose()
annotations += typeRef.annotations
if (typeRef !is FirUserTypeRef) {
delegatedTypeRef = typeRef
}
}.compose()
}