Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f467c970b2a4ee4ada1a66e72db80b847652c1d1
/
.
/
compiler
/
testData
/
codegen
/
script
/
scriptInstanceCapturing
/
anonymousObjectCapturesProperty.kts
blob: b030bf9263c1ce3cb005aae34a97c3c2c602641f [
file
] [
log
] [
blame
]
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// 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
()