JVM IR: fix incorrect IR types in inner and enum class lowerings

In InnerClassesLowering, the type of the "outer$0" expression should be
the outer class, not the inner class. In EnumClassLowering, the type of
the enum entry is the type of its class or the type of the enum class,
but not the type of initialierExpression which is always Unit
This commit is contained in:
Alexander Udalov
2019-02-06 16:05:50 +01:00
committed by Alexander Udalov
parent 4bfa98144b
commit 8b395589be
4 changed files with 5 additions and 13 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
open class A {
open val foo: String = "OK"
}