Fir2Ir: properly compute setter type parameter bounds

This commit is contained in:
Georgy Bronnikov
2022-05-02 13:30:06 +03:00
committed by Alexander Udalov
parent 3a4b8962f9
commit 8fd29a9fec
4 changed files with 2 additions and 58 deletions
@@ -115,7 +115,7 @@ class Fir2IrClassifierStorage(
getIrTypeParameter(typeParameter, index, symbol, typeContext).apply {
parent = this@setTypeParameters
if (superTypes.isEmpty()) {
superTypes = typeParameter.bounds.map { it.toIrType() }
superTypes = typeParameter.bounds.map { it.toIrType(typeContext) }
}
}
}