Kapt: Fix stubs for delegated properties with anonymous types (KT-27910)

This commit is contained in:
Yan Zhulanow
2018-11-07 17:44:45 +09:00
parent 5fd070a9b9
commit 69633e6686
5 changed files with 87 additions and 3 deletions
@@ -143,7 +143,10 @@ class VariableTypeAndInitializerResolver(
variableDescriptor, delegateExpression, type, trace, scopeForInitializer, dataFlowInfo
)
getterReturnType?.let { approximateType(it, local) } ?: ErrorUtils.createErrorType("Type from delegate")
val delegatedType = getterReturnType?.let { approximateType(it, local) }
?: ErrorUtils.createErrorType("Type from delegate")
transformAnonymousTypeIfNeeded(variableDescriptor, property, delegatedType, trace, anonymousTypeTransformers)
}
private fun resolveInitializerType(