[tests] Add a diagnostic test for function resolution in common module

This commit is contained in:
Pavel Kirpichenkov
2023-07-13 19:46:11 +03:00
committed by teamcity
parent 0eef12ea19
commit 71b29f0cd7
6 changed files with 52 additions and 0 deletions
@@ -0,0 +1,22 @@
// FIR_IDENTICAL
// !LANGUAGE: +MultiPlatformProjects
// MODULE: common
// FILE: common.kt
// TARGET_PLATFORM: Common
import kotlin.collections.<!UNRESOLVED_IMPORT!>listOf<!>
fun common() {
<!UNRESOLVED_REFERENCE!>listOf<!>("foo", "bar").map { <!UNRESOLVED_REFERENCE!>it<!> }
}
// MODULE: jvm
// FILE: jvm.kt
// TARGET_PLATFORM: JVM
import kotlin.collections.mapOf
fun jvm() {
mapOf(1 to "1")
}