FIR Java: don't add type parameter bounds multiple times

This commit is contained in:
Mikhail Glukhikh
2019-11-11 14:05:58 +03:00
parent a18da68171
commit db11c14fee
5 changed files with 11 additions and 9 deletions
@@ -146,7 +146,9 @@ class JavaSymbolProvider(
.map { it.toFirTypeParameter(stack) }
.also {
it.forEachIndexed { index, typeParameter ->
typeParameter.addBounds(this[index], stack)
if (typeParameter.bounds.isEmpty()) {
typeParameter.addBounds(this[index], stack)
}
}
}
}