mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
30 lines
672 B
Kotlin
Vendored
30 lines
672 B
Kotlin
Vendored
// !LANGUAGE: +MultiPlatformProjects
|
|
// !DIAGNOSTICS: -UNSUPPORTED
|
|
// MODULE: m1-common
|
|
// FILE: common.kt
|
|
|
|
expect class Foo {
|
|
constructor(p: Any)
|
|
|
|
fun f1(s: String): Int
|
|
|
|
fun f2(s: List<String>?): MutableMap<Boolean?, Foo>
|
|
|
|
fun <T : Set<Number>> f3(t: T): T?
|
|
}
|
|
|
|
// MODULE: m2-js(m1-common)
|
|
// FILE: js.kt
|
|
|
|
// TODO: do not suppress UNSUPPORTED once JS files in multi-platform tests are analyzed with JS analyzer facade
|
|
|
|
actual class Foo {
|
|
actual constructor(p: dynamic) {}
|
|
|
|
actual fun f1(s: dynamic): dynamic = null!!
|
|
|
|
actual fun f2(s: dynamic): MutableMap<Boolean?, Foo> = null!!
|
|
|
|
actual fun <T : Set<Number>> f3(t: T): dynamic = null!!
|
|
}
|