f38c0cf348
Similarly to FIR diagnostic tests. This commit enable all available test data and check the reported error messages by FIR. This helps identify some issues in formatting of FIR diagnostics. The changes on the test file are mechanically generated. Failed tests are disabled with `// IGNORE_FIR` and are re-enabled in the second commit.
26 lines
926 B
Kotlin
Vendored
26 lines
926 B
Kotlin
Vendored
@file:kotlin.Deprecated("message")
|
|
@file:Suppress(BAR)
|
|
@file:Suppress(BAZ)
|
|
|
|
@<error descr="Expecting \"file:\" prefix for file annotations">k</error>otlin.Deprecated("message")
|
|
@<error descr="Expecting \"file:\" prefix for file annotations">S</error>uppress(BAR)
|
|
@<error descr="Expecting \"file:\" prefix for file annotations">S</error>uppress(BAZ)
|
|
|
|
@file:myAnnotation(1, "string")
|
|
@file:boo.myAnnotation(1, BAR)
|
|
@file:myAnnotation(N, BAZ)
|
|
|
|
@<error descr="Expecting \"file:\" prefix for file annotations">m</error>yAnnotation(1, "string")
|
|
@<error descr="Expecting \"file:\" prefix for file annotations">b</error>oo.myAnnotation(1, "string")
|
|
@<error descr="Expecting \"file:\" prefix for file annotations">m</error>yAnnotation(N, BAZ)
|
|
|
|
package boo
|
|
|
|
const val BAZ = "baz"
|
|
const val N = 0
|
|
|
|
@Target(AnnotationTarget.FILE)
|
|
@Retention(AnnotationRetention.SOURCE)
|
|
@Repeatable
|
|
annotation class myAnnotation(val i: Int, val s: String)
|