FIR: Force processing postponed arguments nested in lambdas

See the call-site of processAllContainingCallCandidates in getOrderedNotAnalyzedPostponedArguments
This commit is contained in:
Denis Zharkov
2020-01-31 15:05:33 +03:00
parent 1e2e556328
commit 23e9a0c861
6 changed files with 87 additions and 17 deletions
@@ -7,7 +7,7 @@ fun test(i: Int) {
createSample(i) { it.toString() }
}
<!INAPPLICABLE_CANDIDATE!>takeSample<!>(bad)
takeSample(bad)
}
fun <T> myLazyDelegate(i: () -> T): LazyDelegate<T> = LazyDelegate(i())
@@ -19,4 +19,4 @@ class LazyDelegate<T>(val v: T) {
class Sample<K, V>
fun takeSample(g: Sample<Int, String>) {}
fun <T, S> createSample(i: T, a: (T) -> S): Sample<T, S> = TODO()
fun <T, S> createSample(i: T, a: (T) -> S): Sample<T, S> = TODO()