mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Since functionFromStdlibSingleFileFacade.kt was introduced, lazyOf was also moved to a multifile class, so we're using another function to test that reflection on a single file package facade from stdlib works
18 lines
506 B
Kotlin
Vendored
18 lines
506 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// KT-12630 KotlinReflectionInternalError on referencing some functions from stdlib
|
|
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
// 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"
|
|
}
|