/*
 * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE)
 *
 * SPEC VERSION: 0.1-300
 * MAIN LINK: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2
 * NUMBER: 7
 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the enumEntry.
 * NOTE: this test data is generated by FeatureInteractionTestDataGenerator. DO NOT MODIFY CODE MANUALLY!
 */

enum class A(val x: Boolean) {
    `true`(false),
    `false`(true);
}

fun box(): String? {
    if (A.`true`.x) return null
    if (!A.`false`.x) return null

    if (A.`true`.name != "true") return null
    if (A.`false`.name != "false") return null

    return "OK"
}