[NI] Use resolved lhsType as unbound receiver.
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
c752e1580e
commit
f1144c9f01
+2
-2
@@ -81,7 +81,7 @@ interface FunctionExpression : LambdaKotlinCallArgument {
|
||||
* D.E::foo <-> Expression
|
||||
*/
|
||||
sealed class LHSResult {
|
||||
class Type(val qualifier: QualifierReceiver): LHSResult() {
|
||||
class Type(val qualifier: QualifierReceiver, resolvedType: UnwrappedType): LHSResult() {
|
||||
val unboundDetailedReceiver: ReceiverValueWithSmartCastInfo
|
||||
|
||||
init {
|
||||
@@ -89,7 +89,7 @@ sealed class LHSResult {
|
||||
"Should be ClassDescriptor: ${qualifier.descriptor}"
|
||||
}
|
||||
|
||||
val unboundReceiver = TransientReceiver((qualifier.descriptor as ClassDescriptor).defaultType)
|
||||
val unboundReceiver = TransientReceiver(resolvedType)
|
||||
unboundDetailedReceiver = ReceiverValueWithSmartCastInfo(unboundReceiver, emptySet(), isStable = true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user