Files
kotlin-fork/compiler/testData/codegen/box/ir/serializationRegressions/varAsFunctionCall.kt
T
Ilya Chernikov 78ca733c38 FIR JS: add K2 variants of all other JS tests
except tests that are not possible to add without some modifications in
the test infra. See todos on the commented-out test declarations
2022-11-12 16:28:24 +01:00

16 lines
337 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: ARGUMENT_TYPE_MISMATCH at ok.z(fail), actual String, expected T
// MODULE: lib
// FILE: l1.kt
val <T : CharSequence> T.z
get() = { x: T -> this }
// FILE: l2.kt
fun test(ok: String, fail: String) = ok.z(fail)
// MODULE: main(lib)
// FILE: main.kt
fun box() = test("OK", "FAIL")