FIR: use correct context for enum entry resolve
Now the same resolve context is used for enum entries and for constructors.
This commit is contained in:
Vendored
+11
@@ -6,4 +6,15 @@ class Host {
|
||||
}
|
||||
}
|
||||
|
||||
enum class Test(val x: String, val closure1: () -> String) {
|
||||
FOO("O", run { { FOO.x } }) {
|
||||
override val y: String = "K"
|
||||
val closure2 = { y } // Implicit 'FOO'
|
||||
override val z: String = closure2()
|
||||
};
|
||||
|
||||
abstract val y: String
|
||||
abstract val z: String
|
||||
}
|
||||
|
||||
fun box() = Host.Companion.fn()
|
||||
|
||||
Reference in New Issue
Block a user