Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2b455fc1ba7dcb99fa03fdfc31c7672d6ccfc9fd
/
.
/
compiler
/
testData
/
codegen
/
box
/
extensionClasses
/
propertyWithContext.kt
blob: 1c2e40be7d1008a2c7d7296c0104120919bd2018 [
file
]
// LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-53706
fun box
():
String
{
return
with
(
SomeContext
())
{
"error"
.
foo
}
}
class
SomeContext
{
val value
:
String
=
"OK"
}
context
(
SomeContext
)
val
String
.
foo
:
String
get
()
=
value