Fix for KT-12127: Undeclared type variable on delegated property backing field

#KT-12127 Fixed
This commit is contained in:
Mikhael Bogdanov
2016-05-04 14:32:49 +03:00
parent bac5c4d70b
commit ee7bbbf530
4 changed files with 33 additions and 9 deletions
@@ -348,7 +348,7 @@ public class PropertyCodegen {
FieldVisitor fv = builder.newField(
JvmDeclarationOriginKt.OtherOrigin(element, propertyDescriptor), modifiers, name, type.getDescriptor(),
typeMapper.mapFieldSignature(kotlinType, propertyDescriptor), defaultValue
isDelegate ? null : typeMapper.mapFieldSignature(kotlinType, propertyDescriptor), defaultValue
);
Annotated fieldAnnotated = new AnnotatedWithFakeAnnotations(propertyDescriptor, annotations);