Files
Vladimir Dolzhenko 51671e6179 Kotlin highlight passes are reworked
Relates to #KT-37702

On merge it has to be adjusted with original repo despite this commit has been picked up from original commit: 913c298be858b63e472cfd6c58af11702b3a101d

GitOrigin-RevId: 93a1b156f361c72f89c04edf71b10aa76c3b123d
2021-02-05 00:18:27 +03:00

33 lines
1004 B
Kotlin

annotation class A(val i: Int)
annotation class Z(val i: Int)
@Z("BAD") @Suppress("TYPE_MISMATCH")
fun some0() {}
@Z("BAD") <error descr="[REPEATED_ANNOTATION] This annotation is not repeatable">@Z("BAD")</error> @Suppress("TYPE_MISMATCH")
fun some01() {}
@Suppress("TYPE_MISMATCH") @Z("BAD")
fun some1() {
}
@Suppress("TYPE_MISMATCH") @Z("BAD") <error descr="[REPEATED_ANNOTATION] This annotation is not repeatable">@Z("BAD")</error>
fun some11() {
}
@A("BAD") @Suppress("TYPE_MISMATCH")
fun some2() {
}
@Suppress("TYPE_MISMATCH") @A("BAD")
fun some3() {
}
@A(<error descr="[TYPE_MISMATCH] Type mismatch: inferred type is String but Int was expected">"BAD"</error>) <error descr="[REPEATED_ANNOTATION] This annotation is not repeatable">@A(<error descr="[TYPE_MISMATCH] Type mismatch: inferred type is String but Int was expected">"BAD"</error>)</error>
fun some4() {
}
@Z(<error descr="[TYPE_MISMATCH] Type mismatch: inferred type is String but Int was expected">"BAD"</error>)
fun someN() {
}