Files
kotlin-fork/analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/commonContext.kt
T
Yan Zhulanow 5179462632 [Analysis API] Support non-JVM platforms in code fragments
The 'evalJs' test is not available, as there is no proper support for
klib loading in non-standalone Analysis API yet.

^KT-64197 Fixed
2024-01-05 16:04:14 +00:00

23 lines
319 B
Kotlin
Vendored

// !LANGUAGE: +MultiPlatformProjects
// MODULE: common
// TARGET_PLATFORM: Common
// FILE: Common.kt
package test
fun test(foo: Foo) {
<caret>foo.call()
}
expect class Foo {
fun call()
}
// MODULE: main()()(common)
// TARGET_PLATFORM: JVM
// FILE: Jvm.kt
package test
actual class Foo {
fun call() {}
}