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.
37 lines
582 B
Kotlin
Vendored
37 lines
582 B
Kotlin
Vendored
// IGNORE_BACKEND: NATIVE
|
|
class C {
|
|
private fun String.ext() : String = ""
|
|
private fun f() {}
|
|
|
|
public fun foo() : String {
|
|
{
|
|
"".ext()
|
|
f()
|
|
}.invoke()
|
|
|
|
object : Runnable {
|
|
public override fun run() {
|
|
"".ext()
|
|
f()
|
|
}
|
|
}.run()
|
|
|
|
Inner().innerFun()
|
|
|
|
return "OK"
|
|
}
|
|
|
|
private inner class Inner() {
|
|
fun innerFun() {
|
|
"".ext()
|
|
f()
|
|
}
|
|
}
|
|
}
|
|
|
|
interface Runnable {
|
|
fun run(): Unit
|
|
}
|
|
|
|
fun box() = C().foo()
|