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:
Denis.Zharkov
2020-12-29 15:45:34 +03:00
parent 826985450e
commit b7a382f097
7 changed files with 3 additions and 36 deletions
@@ -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