Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fa6706d92e6b4fd10bdb26da483b20467cd68a42
/
.
/
compiler
/
testData
/
codegen
/
script
/
scriptInstanceCapturing
/
anonymousObjectCapturesProperty.kts
blob: 5025ba3a9a38ed11810454dc2b5060f59d8c7a95 [
file
]
// IGNORE_BACKEND: JS_IR, JS_IR_ES6, NATIVE, WASM_JS, WASM_WASI
// expected: rv: 42
fun foo
()
=
B
.
bar
()
val life
=
42
interface
A
{
fun bar
():
Int
}
val B
=
object
:
A
{
override
fun bar
()
=
life
}
val rv
=
foo
()