Files
kotlin-fork/compiler/testData/codegen/box/reflection/methodsFromAny/functionFromStdlibMultiFileFacade.kt
T
Vladimir Sukharev 05e22e56d3 [K/N] Mark rest of reflection related tests as jvm-only
^KT-59057

Merge-request: KT-MR-10570
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-06-16 11:50:03 +00:00

17 lines
474 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// KT-12630 KotlinReflectionInternalError on referencing some functions from stdlib
// WITH_REFLECT
import kotlin.test.*
fun box(): String {
val asIterable = List<Int>::asIterable
assertEquals("fun kotlin.collections.Iterable<T>.asIterable(): kotlin.collections.Iterable<T>", asIterable.toString())
val lazyOf: (String) -> Lazy<String> = ::lazyOf
assertEquals("fun lazyOf(T): kotlin.Lazy<T>", lazyOf.toString())
return "OK"
}