Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
145b5051f737bcd07fb6d5440a722cea8ba3f98c
/
.
/
compiler
/
testData
/
codegen
/
box
/
extensionClasses
/
generics.kt
blob: 134eab58927a1ff5c47054540ab7a5678014d1fb [
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
}