mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
19 lines
536 B
Kotlin
Vendored
19 lines
536 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// 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"
|
|
}
|