// DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
// SKIP_TXT

/*
 * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
 *
 * SPEC VERSION: 0.1-218
 * MAIN LINK: expressions, constant-literals, character-literals -> paragraph 4 -> sentence 1
 * PRIMARY LINKS: expressions, constant-literals, character-literals -> paragraph 5 -> sentence 1
 * NUMBER: 1
 * DESCRIPTION: to define a character the unicode codepoint escaped symbol \u could be used with followed by exactly four hexadecimal digits.
 * HELPERS: checkType
 */


// TESTCASE NUMBER: 1

fun case1() {
    //less then four hex digits
    val c0 = '<!ILLEGAL_ESCAPE!>\u<!>'
    val c1 = '<!ILLEGAL_ESCAPE!>\uf<!>'
    val c2 = '<!ILLEGAL_ESCAPE!>\u1f<!>'
    val c3 = '<!ILLEGAL_ESCAPE!>\u1wf<!>'

    //more then four hex digits
    val c4 = '<!ILLEGAL_ESCAPE!>\u1wF2f<!>'
}

// TESTCASE NUMBER: 2

fun case2() {
    //not hex
    val c1 = '<!ILLEGAL_ESCAPE!>\u000g<!>'
    val c2 = '<!ILLEGAL_ESCAPE!>\u000G<!>'
}