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:
Mikhail Glukhikh
2021-01-15 18:37:06 +03:00
parent f85fc47383
commit 9a5791ad6d
5 changed files with 70 additions and 1 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
enum class Test(val x: String, val closure1: () -> String) {
FOO("O", run { { FOO.x } }) {
override val y: String = "K"