Revert "Fix ISE when inferring type of a property that delegates to itself"
This reverts commit 1a03d5c93e.
The reason is that original change seems to be breaking (see KT-44137).
^KT-44137 Relates
^KT-37796 Open
This commit is contained in:
@@ -545,12 +545,7 @@ class DelegatedPropertyResolver(
|
||||
traceToResolveDelegatedProperty, false, delegateExpression, ContextDependency.DEPENDENT
|
||||
)
|
||||
|
||||
if (delegateTypeInfo.type == null) {
|
||||
traceToResolveDelegatedProperty.commit()
|
||||
return null
|
||||
}
|
||||
|
||||
var delegateType = delegateTypeInfo.type
|
||||
var delegateType = delegateTypeInfo.type ?: return null
|
||||
var delegateDataFlow = delegateTypeInfo.dataFlowInfo
|
||||
|
||||
val delegateTypeConstructor = delegateType.constructor
|
||||
|
||||
Reference in New Issue
Block a user