FE: don't run builder inference in UNTIL_FIRST_LAMBDA mode
#KT-52927 Fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
fun foo(libraryInfoCache: LibraryInfoCache<String, String>, outdated: List<String>) {
|
||||
val droppedLibraryInfos = libraryInfoCache.invalidateKeys(outdated).<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>flatMapTo<!>(hashSetOf()) { <!UNRESOLVED_REFERENCE!>it<!> }
|
||||
}
|
||||
|
||||
class LibraryInfoCache<Key, Value> {
|
||||
fun invalidateKeys(
|
||||
keys: Collection<Key>,
|
||||
validityCondition: ((Key, Value) -> Boolean)? = null
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user