Fix exception on resolving collection literal inside lambda

#KT-31907 Fixed
 #EA-90906 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-12-08 04:02:36 +03:00
parent c5015c9294
commit 2ad4824eb0
7 changed files with 37 additions and 2 deletions
@@ -0,0 +1,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(l: () -> Unit) {}
fun bar(l: () -> String) {}
val a = foo { [] }
val b = bar { [] }