KT-62584 Fix generation of type arguments for local classes

Merge-request: KT-MR-13684
Merged-by: Pavel Mikhailovskii <Pavel.Mikhailovskii@jetbrains.com>
This commit is contained in:
strangepleasures
2024-01-10 14:20:09 +00:00
committed by Space Team
parent b645997dc4
commit bb8ff9e299
16 changed files with 114 additions and 31 deletions
@@ -72,7 +72,7 @@ private fun IrSimpleType.buildPossiblyInnerType(classifier: IrClass?, index: Int
"${arguments.size - toIndex} trailing arguments were found in this type: ${render()}"
}
return PossiblyInnerIrType(classifier, arguments.subList(index, arguments.size), null)
return PossiblyInnerIrType(classifier, arguments.subList(index, toIndex), null)
}
val argumentsSubList = arguments.subList(index, toIndex)