Add method replaceType for ReceiverValue.

This method will used for capturing from expressions before call resolution.
This commit is contained in:
Stanislav Erokhin
2017-04-06 12:32:46 +03:00
parent 1dcdb72a49
commit e8501c7d54
8 changed files with 49 additions and 2 deletions
@@ -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)
}