// RUN_PIPELINE_TILL: FRONTEND
fun takeInt(x: Int) {}
fun takeLong(x: Long) {}
fun takeByte(x: Byte) {}
fun takeAny(x: Any) {}
fun takeString(x: String) {}

fun test_0() {
    1L
    1
    10000000000
}

fun test_1() {
    takeInt(1)
    takeByte(1)
    takeLong(1)
}

fun test_2() {
    takeInt(<!ARGUMENT_TYPE_MISMATCH!>10000000000<!>)
    takeLong(10000000000)
    takeByte(<!ARGUMENT_TYPE_MISMATCH!>1000<!>)
}

fun test_3() {
    takeInt(run { 1 })
    takeByte(run { 1 })
    takeLong(run { 1 })
}


fun test_4() {
    takeAny(1)
    takeAny(run { 1 })
}

fun test_5() {
    takeString(<!ARGUMENT_TYPE_MISMATCH!>1<!>)
    takeString(<!ARGUMENT_TYPE_MISMATCH!>run { 1 }<!>)
}

annotation class Ann(val x: Byte)

@Ann(10)
fun test_6() {
    @Ann(<!ARGUMENT_TYPE_MISMATCH!>300<!>)
    val x = ""
}

/* GENERATED_FIR_TAGS: annotationDeclaration, functionDeclaration, integerLiteral, lambdaLiteral, localProperty,
primaryConstructor, propertyDeclaration, stringLiteral */
