[IR] Fix IrPropertyReference for delegated property

- Make sure that property CR passed to `getValue` doesn't have type
 arguments.
This commit is contained in:
Roman Artemev
2020-03-12 15:07:29 +03:00
committed by romanart
parent 34c17e2bed
commit 13a73b67de
2 changed files with 1 additions and 3 deletions
@@ -478,7 +478,7 @@ class ReflectionReferencesGenerator(statementGenerator: StatementGenerator) : St
return IrPropertyReferenceImpl(
startOffset, endOffset, type.toIrType(),
originalSymbol,
propertyDescriptor.typeParametersCount,
if (typeArguments != null) propertyDescriptor.typeParametersCount else 0,
getFieldForPropertyReference(originalProperty),
originalGetter?.let { context.symbolTable.referenceSimpleFunction(it) },
originalSetter?.let { context.symbolTable.referenceSimpleFunction(it) },