JVM_IR: fix a typo in EnumWhenLowering

This commit is contained in:
Georgy Bronnikov
2019-05-29 17:31:19 +03:00
parent d7dacef9af
commit 440f327e74
@@ -26,7 +26,7 @@ open class EnumWhenLowering(protected val context: CommonBackendContext) : IrEle
private val subjectWithOrdinalStack = mutableListOf<Pair<IrVariable, Lazy<IrVariable>>>()
protected open fun mapConstEnumEntry(entry: IrEnumEntry): Int =
entry.parentAsClass.declarations.filterIsInstance<IrEnumEntry>().indexOf(this as IrEnumEntry).also {
entry.parentAsClass.declarations.filterIsInstance<IrEnumEntry>().indexOf(entry).also {
assert(it >= 0) { "enum entry ${entry.dump()} not in parent class" }
}