Kapt: Fix stubs for delegated properties with anonymous types (KT-27910)
This commit is contained in:
+4
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user