Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt
T

10 lines
260 B
Kotlin
Vendored

// WITH_RUNTIME
// KT-41771
inline class Polynomial<T : Any>(val coefficients: List<T>) {
constructor(vararg coefficients: T) : this(coefficients.toList())
}
fun box(): String {
val p = Polynomial("FAIL1", "OK", "FAIL2")
return p.coefficients[1]
}