Fixed mapping generic type with multiple bounds from Java to Kotlin.

#KT-3480 fixed
This commit is contained in:
Evgeny Gerashchenko
2014-01-22 17:16:12 +04:00
committed by Zalim Bashorov
parent e47c84f40f
commit d3570153ef
12 changed files with 67 additions and 8 deletions
@@ -282,7 +282,7 @@ public class JetTypeMapper extends BindingTraceAware {
if (descriptor instanceof TypeParameterDescriptor) {
TypeParameterDescriptor typeParameterDescriptor = (TypeParameterDescriptor) descriptor;
Type type = mapType(typeParameterDescriptor.getUpperBoundsAsType(), kind);
Type type = mapType(typeParameterDescriptor.getUpperBounds().iterator().next(), kind);
if (signatureVisitor != null) {
signatureVisitor.writeTypeVariable(typeParameterDescriptor.getName(), type);
}