802beb49a6
classes, instead of MemberScope. The primary motivation was to fix issues around type-mapping for inline classes in FIR, which uses wrapped descriptors that have empty MemberScopes.
24 lines
622 B
Kotlin
Vendored
24 lines
622 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// WITH_RUNTIME
|
|
// KJS_WITH_FULL_RUNTIME
|
|
|
|
import kotlin.test.*
|
|
|
|
inline class TestUIntArrayW(val x: UIntArray)
|
|
|
|
inline class InlineCharArray(val x: CharArray) {
|
|
override fun toString(): String = x.contentToString()
|
|
}
|
|
|
|
inline class TestInlineCharArrayW(val x: InlineCharArray)
|
|
|
|
fun box(): String {
|
|
val t1 = TestUIntArrayW(UIntArray(1)).toString()
|
|
if (!t1.startsWith("TestUIntArrayW")) throw AssertionError(t1)
|
|
|
|
val t2 = TestInlineCharArrayW(InlineCharArray(charArrayOf('a'))).toString()
|
|
if (!t2.startsWith("TestInlineCharArrayW")) throw AssertionError(t2)
|
|
|
|
return "OK"
|
|
}
|