Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/kt28855.kt
T
Svyatoslav Kuzmich 75328f26ea [JS IR BE] Add missing KJS_WITH_FULL_RUNTIME to some tests
+ ranges test generator
2019-01-27 01:14:51 +03:00

15 lines
265 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
class C<T>(val x: T, vararg ys: UInt) {
val y0 = ys[0]
}
fun box(): String {
val c = C("a", 42u)
if (c.y0 != 42u) throw AssertionError()
return "OK"
}