Files
kotlin-fork/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts
T
Ilya Chernikov 5824b9c59c K2 Scripting: add Fir script codegen tests
27 failing tests are muted
2023-07-05 19:46:03 +00:00

16 lines
199 B
Kotlin
Vendored

// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// IGNORE_BACKEND_K2: JVM_IR
// expected: rv: 42
val x = 6
val y = 7
fun foo() = x
class A {
fun bar() = foo() * y
}
val rv = A().bar()