Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
67ac90ce0868ee0c9cd08d72460f16efecded549
/
.
/
compiler
/
testData
/
codegen
/
box
/
extensionClasses
/
genericCollection.kt
blob: 2b4b0cec06798ddbda8114ffd030c0bfc220cff8 [
file
]
// LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: ANY
// WITH_STDLIB
context
(
Collection
<
P
>)
class
A
<
P
>
{
val result
=
if
(!
isEmpty
())
"OK"
else
"fail"
}
fun box
():
String
{
with
(
listOf
(
1
,
2
,
3
))
{
return
A
().
result
}
}