Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/genericUnderlyingValue/array.kt
T
Ilmir Usmanov 00a08fc6a4 Minor. Add tests and comment about copying generic parameters to
constructor, but not function reference to the constructor.

 #KT-32162
2022-02-15 08:11:19 +01:00

6 lines
225 B
Kotlin
Vendored

// CHECK_BYTECODE_LISTING
// LANGUAGE: -JvmInlineValueClasses, +GenericInlineClassParameter
inline class ICIntArray<T: Int>(val value: Array<T>)
fun box(): String = if (ICIntArray(arrayOf(1)).value[0] == 1) "OK" else "FAIL"