Convert lambda to reference: support generic function call
#KT-14578 Fixed #KT-14395 Fixed
This commit is contained in:
committed by
Roman Golyshev
parent
2137a4b1e5
commit
7ea1700b78
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun <T> foo(i: Int): T? = null
|
||||
|
||||
fun test(list: List<Int>) {
|
||||
list.mapNotNull<Int, String>(::foo)
|
||||
}
|
||||
Reference in New Issue
Block a user