[IR] update testdata: better support for IrEnumConstructorCall and IrEnumEntry

This commit is contained in:
Zalim Bashorov
2020-11-06 03:23:26 +03:00
committed by teamcityserver
parent 602f0ddbc8
commit 5500b014f5
18 changed files with 352 additions and 70 deletions
+26 -2
View File
@@ -1,11 +1,35 @@
open enum class Z : Enum<Z> {
private constructor() /* primary */ {
TODO("IrEnumConstructorCall")
super/*Enum*/<Z>()
/* InstanceInitializerCall */
}
ENTRY init = TODO("IrEnumConstructorCall")
ENTRY = ENTRY()
private enum entry class ENTRY : Z {
private constructor() /* primary */ {
super/*Z*/() /*~> Unit */
/* InstanceInitializerCall */
}
fun test() {
}
inner class A {
constructor() /* primary */ {
super/*Any*/()
/* InstanceInitializerCall */
}
fun test2() {
ENTRY.test()
}
}
}
fun values(): Array<Z> /* Synthetic body for ENUM_VALUES */