blob: 1adce2c6e987bc799ccb0fd785671b70ffc1f000 [file]
// LANGUAGE: +ContextReceivers
// 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
}