[FE] Fix: do not report ambiguous label if label map is empty

This commit is contained in:
Anastasia.Shadrina
2021-12-21 01:00:04 +07:00
committed by teamcity
parent 8905586cbb
commit ea33da3a8d
7 changed files with 37 additions and 1 deletions
@@ -0,0 +1,9 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
// WITH_STDLIB
fun testLabels(source: Collection<String>) {
val r = buildList {
source.mapTo(this@buildList) { it.length }
}
}