Cleanup: apply "Convert lambda to reference"

This commit is contained in:
Mikhail Glukhikh
2017-02-22 16:12:01 +03:00
parent b121bf8802
commit 045a23ae10
82 changed files with 117 additions and 135 deletions
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.types.KotlinType
fun getReceiverValueWithSmartCast(
receiverArgument: ReceiverValue?,
smartCastType: KotlinType?
) = smartCastType?.let { SmartCastReceiverValue(it) } ?: receiverArgument
) = smartCastType?.let(::SmartCastReceiverValue) ?: receiverArgument
private class SmartCastReceiverValue(private val type: KotlinType) : ReceiverValue {
override fun getType() = type