Basic completion prefers right type in lambda value

This commit is contained in:
Valentin Kipyatkov
2015-08-07 17:25:06 +03:00
parent 96109230eb
commit cd6d8ffa98
3 changed files with 27 additions and 7 deletions
@@ -0,0 +1,15 @@
fun <T, R> List<T>.map(transform: (T) -> R): List<R> {}
class X {
val x1: String
val x2: Any
val x3: Int
}
fun foo(list: List<X>): Collection<Int> {
return list.map { it.x<caret> }
}
// ORDER: x3
// ORDER: x1
// ORDER: x2