// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JS_IR enum class Foo( val x: String, val callback: () -> String ) { FOO("OK", { FOO.x }) } fun box() = Foo.FOO.callback()