Enum with field does not contain name

The following enum does not contain name value after compilation

enum class TestEnum {
A, B, C(5), D;

val num: Int

constructor() {
    num = 0
}

constructor(num: Int) {
    this.num = num
}

companion object {
    val ALL = arrayOf(A, B, C, D)
}
}

It only has num

> TestEnum.C
TestEnum {num: 5}
num: 5
name: undefined
ordinal: undefined
__proto__: Enum

similar for A and other values

For reference, the issue is tracked here: https://youtrack.jetbrains.com/issue/KT-30750