3aa6c9e74d
^KT-58240
38 lines
712 B
Kotlin
Vendored
38 lines
712 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// IGNORE_BACKEND: JS_IR_ES6
|
|
|
|
// SKIP_SIGNATURE_DUMP
|
|
// ^ Types of properties of anonymous classes generated by K1 and K2 are different
|
|
|
|
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
|
// IGNORE_BACKEND: NATIVE
|
|
|
|
enum class MyEnum {
|
|
Z {
|
|
var counter = 0
|
|
fun foo() {}
|
|
|
|
fun bar() {
|
|
counter = 1
|
|
foo()
|
|
}
|
|
|
|
val aLambda = {
|
|
counter = 1
|
|
foo()
|
|
}
|
|
|
|
val anObject = object {
|
|
init {
|
|
counter = 1
|
|
foo()
|
|
}
|
|
|
|
fun test() {
|
|
counter = 1
|
|
foo()
|
|
}
|
|
}
|
|
}
|
|
}
|