// !DIAGNOSTICS: -UNUSED_PARAMETER
annotation class Ann(val x: Int = 6)

@Ann(1) @Ann(2) @Ann(3) @private class A @Ann constructor() {
    @Ann(x = 5) fun foo() {
        1 + @Ann(1) 1 * @Ann(<!TYPE_MISMATCH!>""<!>) 6

        @Ann fun local() {}
    }

    @Ann val x = 1

    fun bar(x: @Ann(1) @Ann(2) @Ann(3) Int) {}
}
