Fix shortening references for receiver in MakeTypeExplicitInLambdaIntention

#KT-5474 Fixed
This commit is contained in:
Pavel V. Talanov
2014-07-15 17:47:20 +04:00
parent 18cb479ef3
commit 5246735648
4 changed files with 15 additions and 6 deletions
@@ -1,3 +1,5 @@
fun main() {
val randomFunction: kotlin.Array<kotlin.Int>.(x: Int) -> Boolean = {<caret>y -> if (this[0] < y) true else false}
val randomFunction: kotlin.support.AbstractIterator<kotlin.Int>.(x: Int) -> Boolean = {<caret>y -> if (this.next() < y) true else false}
}
// WITH_RUNTIME
@@ -1,3 +1,7 @@
import kotlin.support.AbstractIterator
fun main() {
val randomFunction: kotlin.Array<kotlin.Int>.(x: Int) -> Boolean = { Array<Int>.(y: Int): Boolean -> if (this[0] < y) true else false}
val randomFunction: kotlin.support.AbstractIterator<kotlin.Int>.(x: Int) -> Boolean = { AbstractIterator<Int>.(y: Int): Boolean -> if (this.next() < y) true else false}
}
// WITH_RUNTIME