JVM_IR: keep nullability when remapping type parameters

This commit is contained in:
pyos
2019-12-20 13:43:46 +01:00
committed by Georgy Bronnikov
parent 1b95040934
commit 17d2fda946
7 changed files with 72 additions and 1 deletions
@@ -294,7 +294,7 @@ fun IrType.remapTypeParameters(source: IrTypeParametersContainer, target: IrType
val classifier = classifier.owner
when {
classifier is IrTypeParameter && classifier.parent == source ->
target.typeParameters[classifier.index + shift].defaultType
IrSimpleTypeImpl(target.typeParameters[classifier.index + shift].symbol, hasQuestionMark, arguments, annotations)
classifier is IrClass ->
IrSimpleTypeImpl(