Files
openide/plugins/kotlin/fir/tests/testData/kmp/highlighting/collectionBuilders.kt
Pavel Kirpichenkov a05c97a762 [Kotlin] Resolve parts of KMP libraries in multiplatform descriptor
KTIJ-29725

GitOrigin-RevId: c7f8cb5e25abd7db02e9d3404283d6b3db04a96c
2024-05-16 13:00:18 +00:00

27 lines
455 B
Kotlin

// PLATFORM: Common
// FILE: common.kt
fun commonThings() {
val c = listOf(1, 2, 3)
val d = sequenceOf("a", "b")
val e = mapOf("1" to 1)
}
// PLATFORM: Jvm
// FILE: jvm.kt
fun jvmThings() {
val c = listOf(1, 2, 3)
val d = sequenceOf("a", "b")
val e = sortedMapOf("1" to 1)
}
// PLATFORM: Js
// FILE: js.kt
fun jsThings() {
val c = listOf(1, 2, 3)
val d = sequenceOf("a", "b")
val e = linkedStringMapOf("1" to 1)
}