[FIR] Remove adding annotations from bounds to type parameter in lightTree2Fir

This commit is contained in:
Dmitriy Novozhilov
2019-10-30 18:37:34 +03:00
parent 36ad065792
commit ad9bf62b2f
@@ -82,7 +82,8 @@ fun FirTypeParametersOwner.joinTypeParameters(typeConstraints: List<TypeConstrai
this.typeParameters.forEach { typeParameter ->
if (typeConstraint.identifier == typeParameter.name.identifier) {
(typeParameter as FirTypeParameterImpl).bounds += typeConstraint.firTypeRef
typeParameter.annotations += typeConstraint.firTypeRef.annotations
// TODO: why this is necessary?
// typeParameter.annotations += typeConstraint.firTypeRef.annotations
typeParameter.annotations += typeConstraint.annotations
}
(typeParameter as FirTypeParameterImpl).addDefaultBoundIfNecessary()