[FIR] Add REPEATED_ANNOTATION, REPEATED_ANNOTATION_WARNING

This commit is contained in:
Ivan Kochurkin
2021-09-06 14:36:26 +03:00
committed by TeamCityServer
parent fa12e72551
commit 55f33999f1
40 changed files with 300 additions and 440 deletions
@@ -1,23 +0,0 @@
annotation class unrepann(val x: Int)
annotation class ann(val y: Int)
@unrepann(1) @unrepann(2) class DoubleAnnotated
@ann(3) @ann(7) @ann(42) class TripleAnnotated
@Target(AnnotationTarget.EXPRESSION)
@Retention(AnnotationRetention.SOURCE)
annotation class annexpr
@ann(0) @ann(1) fun foo(@ann(7) @ann(2) x: Int): Int {
@annexpr @annexpr return x
}
@unrepann(0)
@get:unrepann(1)
var annotated = 1 // No errors should be here
@unrepann(0)
@property:unrepann(1)
var annotated2 = 2
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
annotation class unrepann(val x: Int)
annotation class ann(val y: Int)