Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b1f59e5f0d739fd4c19f9e413cc9c324657eafed
/
.
/
compiler
/
testData
/
codegen
/
box
/
extensionClasses
/
generics.kt
blob: 59eda5359837e16f0de139d5b1aea0b65b7fdba6 [
file
]
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// FIR status: context receivers aren't yet supported
context
(
T
)
class
B
<
T
:
CharSequence
>
{
val result
=
if
(
length
==
2
)
"OK"
else
"fail"
}
fun box
()
=
with
(
"OK"
)
{
B
().
result
}