Add method replaceType for ReceiverValue.
This method will used for capturing from expressions before call resolution.
This commit is contained in:
@@ -26,4 +26,5 @@ fun getReceiverValueWithSmartCast(
|
||||
|
||||
private class SmartCastReceiverValue(private val type: KotlinType) : ReceiverValue {
|
||||
override fun getType() = type
|
||||
override fun replaceType(newType: KotlinType) = SmartCastReceiverValue(newType)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user