Type uncapturing

This commit is contained in:
Michael Bogdanov
2016-01-13 14:29:52 +03:00
parent 2228cb6a9a
commit 607f32615f
10 changed files with 142 additions and 1 deletions
@@ -2459,7 +2459,8 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
for (Map.Entry<TypeParameterDescriptor, KotlinType> entry : typeArguments.entrySet()) {
TypeParameterDescriptor key = entry.getKey();
KotlinType type = entry.getValue();
KotlinType type = TypeUtils.uncaptureTypeForInlineMapping(entry.getValue());
TypeParameterDescriptor parameterDescriptor = TypeUtils.getTypeParameterDescriptorOrNull(type);
if (parameterDescriptor == null) {
// type is not generic