More accurate check of repeated use-site annotations #KT-13859 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-12-22 20:04:57 +03:00
parent 778289fefe
commit 5f3c1dfc41
5 changed files with 91 additions and 9 deletions
@@ -10,4 +10,12 @@ annotation class ann(val y: Int)
@ann(0) <!REPEATED_ANNOTATION!>@ann(1)<!> fun foo(@ann(7) <!REPEATED_ANNOTATION!>@ann(2)<!> x: Int): Int {
@annexpr <!REPEATED_ANNOTATION!>@annexpr<!> return x
}
}
@unrepann(0)
@get:unrepann(1)
var annotated = 1 // No errors should be here
@unrepann(0)
<!REPEATED_ANNOTATION!>@property:unrepann(1)<!>
var annotated2 = 2