Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
eeaff786f0d0a86b7b827da0028bbafe287d3c04
/
.
/
compiler
/
testData
/
codegen
/
script
/
scriptInstanceCapturing
/
classCapturesFunction.kts
blob: 433c1d3b561b37ab76fc9f38efdeb6ac0bfe701a [
file
]
// IGNORE_BACKEND: JS_IR, JS_IR_ES6, NATIVE, WASM_JS, WASM_WASI
// expected: rv: 42
val x
=
6
val y
=
7
fun foo
()
=
x
class
A
{
fun bar
()
=
foo
()
*
y
}
val rv
=
A
().
bar
()