FIR: preserve delegatedTypeRef when transforming FirFunctionTypeRef

This commit is contained in:
Ilya Kirillov
2021-01-09 07:36:35 +01:00
parent b405cbb1ff
commit 16cd2f08fe
2 changed files with 2 additions and 1 deletions
@@ -51,6 +51,7 @@ class FirSpecificTypeResolverTransformer(
source = functionTypeRef.source
type = resolvedType
annotations += functionTypeRef.annotations
delegatedTypeRef = functionTypeRef
}
} else {
buildErrorTypeRef {
@@ -1,3 +1,3 @@
package typeReferenceError
class Pair<<!SYNTAX!><!>:<!UNRESOLVED_REFERENCE!>(val c: <!SYNTAX!><!SYNTAX!><!>fun<!><!SYNTAX!><!> main<!>()
class Pair<<!SYNTAX!><!>:<!UNRESOLVED_REFERENCE!>(val c: <!SYNTAX!><!SYNTAX!><!>fun<!><!SYNTAX!><!> <!UNRESOLVED_REFERENCE!>main<!><!>()