11 lines
223 B
Kotlin
Vendored
11 lines
223 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
// TARGET_BACKEND: JVM_IR
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
context(T) class B<T : CharSequence> {
|
|
val result = if (length == 2) "OK" else "fail"
|
|
}
|
|
|
|
fun box() = with("OK") {
|
|
B().result
|
|
} |