[FIR] Save type attributes in substitution

This commit is contained in:
Dmitriy Novozhilov
2020-06-29 17:43:58 +03:00
parent 25fd5cd4ac
commit 1d3c0f56a9
@@ -107,7 +107,8 @@ abstract class AbstractConeSubstitutor : ConeSubstitutor() {
is ConeClassLikeTypeImpl -> ConeClassLikeTypeImpl( is ConeClassLikeTypeImpl -> ConeClassLikeTypeImpl(
lookupTag, lookupTag,
newArguments as Array<ConeTypeProjection>, newArguments as Array<ConeTypeProjection>,
nullability.isNullable nullability.isNullable,
attributes
) )
is ConeClassLikeType -> error("Unknown class-like type to substitute: $this, ${this::class}") is ConeClassLikeType -> error("Unknown class-like type to substitute: $this, ${this::class}")
else -> error("Unknown type to substitute: $this, ${this::class}") else -> error("Unknown type to substitute: $this, ${this::class}")