[tests] Add a diagnostic test for function resolution in common module
This commit is contained in:
committed by
teamcity
parent
0eef12ea19
commit
71b29f0cd7
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user