Convert lambda to reference: support generic function call

#KT-14578 Fixed
#KT-14395 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-06-23 11:58:01 +09:00
committed by Roman Golyshev
parent 2137a4b1e5
commit 7ea1700b78
8 changed files with 61 additions and 2 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
interface CD
fun <D : CD> D.foo(): D? = null
fun test(x: List<CD>) {
x.mapNotNull <caret>{ it.foo() }
}