[FIR] Fix nullability of function type created from custom function type

#KT-64706 Fixed
This commit is contained in:
Kirill Rakhman
2024-01-29 15:06:00 +01:00
committed by Space Team
parent 811e8d7c3b
commit d047db850f
4 changed files with 50 additions and 1 deletions
@@ -113,7 +113,7 @@ private fun ConeKotlinType.createFunctionTypeWithNewKind(session: FirSession, ki
val functionTypeId = ClassId(kind.packageFqName, kind.numberedClassName(expandedType.typeArguments.size - 1))
return functionTypeId.toLookupTag().constructClassType(
expandedType.typeArguments,
isNullable = false,
isNullable = expandedType.isNullable,
attributes = expandedType.attributes
)
}