Check that resolve works properly with inner classes in enum entries

This commit is contained in:
Dmitry Petrov
2017-09-08 12:33:27 +03:00
parent ba2c3136bb
commit 26b2f59b86
4 changed files with 45 additions and 0 deletions
@@ -0,0 +1,13 @@
// !LANGUAGE: +InnerClassInEnumEntryClass
enum class A {
X {
val x = 1
fun foo() {}
inner class Inner {
val y = x
fun bar() = foo()
}
}
}