c6a4ec2ff4
* Add enumeration support. * Enum classes lowering. * merge fix * merge fix * used arrayOf from irModule * changed lowering quant from body to file * refactoring * review fixes * lowering for GET_OBJECT in enums * enabled tests * added tests * moved tests to separate dir * renamed test files * moved phase up * review fixes * reformat
21 lines
364 B
Kotlin
21 lines
364 B
Kotlin
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
enum class IssueState {
|
|
|
|
FIXED {
|
|
override fun ToString() = D().k
|
|
|
|
fun s() = "OK"
|
|
|
|
class D {
|
|
val k = s()
|
|
}
|
|
};
|
|
|
|
open fun ToString() : String = "fail"
|
|
}
|
|
|
|
fun box(): String {
|
|
return IssueState.FIXED.ToString()
|
|
} |