13 lines
360 B
Kotlin
Vendored
13 lines
360 B
Kotlin
Vendored
// DONT_TARGET_EXACT_BACKEND: WASM
|
|
// WASM_MUTE_REASON: STDLIB_COLLECTIONS
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// 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]
|
|
} |