blob: f95a08ac0fce79d0a3b139f987fb0852abb1cef5 [file]
// LANGUAGE: +ContextReceivers, -ContextParameters
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: ANY
context(T) class B<T : CharSequence> {
val result = if (length == 2) "OK" else "fail"
}
fun box() = with("OK") {
B().result
}