Add test for the same pitfall for parameter types in MakeTypesExplicitInLambda

This commit is contained in:
Pavel V. Talanov
2014-07-15 18:08:00 +04:00
parent e390385bf9
commit 1a5ba566cc
2 changed files with 8 additions and 2 deletions
@@ -1,3 +1,5 @@
fun main() {
val randomFunction: (x: kotlin.Int, y: kotlin.String) -> kotlin.Int = {(<caret>x, str) -> x}
val randomFunction: (x: kotlin.support.AbstractIterator<Int>, y: kotlin.String) -> kotlin.String = {(<caret>x, str) -> str}
}
// WITH_RUNTIME
@@ -1,3 +1,7 @@
import kotlin.support.AbstractIterator
fun main() {
val randomFunction: (x: kotlin.Int, y: kotlin.String) -> kotlin.Int = {(x: Int, str: String): Int -> x}
val randomFunction: (x: kotlin.support.AbstractIterator<Int>, y: kotlin.String) -> kotlin.String = {(x: AbstractIterator<Int>, str: String): String -> str}
}
// WITH_RUNTIME