mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
This patch mutes the following test categories:
* Tests with java dependencies (System class,
java stdlib, jvm-oriented annotations etc).
* Coroutines tests.
* Reflection tests.
* Tests with an inheritance from the standard
collections.
27 lines
380 B
Kotlin
Vendored
27 lines
380 B
Kotlin
Vendored
// IGNORE_BACKEND: NATIVE
|
|
// FILE: 1.kt
|
|
// WITH_RUNTIME
|
|
@file:kotlin.jvm.JvmMultifileClass
|
|
@file:kotlin.jvm.JvmName("TestKt")
|
|
package test
|
|
|
|
private val prop = "O"
|
|
|
|
private fun test() = "K"
|
|
|
|
inline internal fun inlineFun(): String {
|
|
return prop + test()
|
|
}
|
|
|
|
class A () {
|
|
fun call() = inlineFun()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return A().call();
|
|
}
|