Files
kotlin-fork/idea/testData/intentions/convertLambdaToReference/generic2.kt.after
T
Toshiaki Kameyama 7ea1700b78 Convert lambda to reference: support generic function call
#KT-14578 Fixed
#KT-14395 Fixed
2020-06-26 20:30:39 +03:00

6 lines
117 B
Plaintext
Vendored

// WITH_RUNTIME
fun <T> foo(i: Int): T? = null
fun test(list: List<Int>) {
list.mapNotNull<Int, String>(::foo)
}