Files
kotlin/compiler/testData/codegen/box/reflection/methodsFromAny/functionFromStdlibSingleFileFacade.kt
Alexander Udalov 7aa75ab89b Minor, update reflection tests on stdlib
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
2019-03-29 13:44:23 +01:00

15 lines
332 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 hashCode = Any?::hashCode
assertEquals("fun kotlin.Any?.hashCode(): kotlin.Int", hashCode.toString())
return "OK"
}