Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
534b00eff856e0e4dcaf105df9a043d9b1263ff7
/
.
/
compiler
/
testData
/
codegen
/
box
/
contextParameters
/
kt52207.kt
blob: df9d2db1f135181aea433485f812e4c4c6f6dea5 [
file
]
// LANGUAGE: +ContextParameters
// FILE: lib.kt
class
A
class
Example
{
context
(
a
:
A
)
inline
fun fn
(
x
:
Int
)
{}
}
// FILE: main.kt
fun test
()
{
with
(
A
())
{
Example
().
fn
(
1
)
}
}
fun box
():
String
{
test
()
return
"OK"
}