NI: Analyze lambdas which are return arguments of another lambda
^KT-36044 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// Issue: KT-36044
|
||||
|
||||
fun <A> select(x: A, f: () -> A) = f()
|
||||
fun <B> map(f: () -> B) = f()
|
||||
|
||||
fun main() {
|
||||
select('a', map { { "" } })
|
||||
}
|
||||
Reference in New Issue
Block a user