FIR IDE: run FIR highlighting test on all test data
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.
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
6592407492
commit
f38c0cf348
+25
@@ -0,0 +1,25 @@
|
||||
@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)
|
||||
Reference in New Issue
Block a user