Psi2ir: ignore unresolved annotations

Note that the test is an exact copy of an existing test
missingDependencyNestedAnnotation, but with -Xuse-ir
This commit is contained in:
Alexander Udalov
2019-06-27 20:27:53 +02:00
parent 9062f4229b
commit 385366384c
12 changed files with 53 additions and 17 deletions
@@ -0,0 +1,6 @@
package a
interface A {
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPE_PARAMETER)
annotation class Anno(val value: String)
}
@@ -0,0 +1,9 @@
package b
import a.A
@A.Anno("B")
interface B {
@A.Anno("foo")
fun <@A.Anno("T") T> foo(t: T) = t
}
@@ -0,0 +1,8 @@
package c
import b.B
// There should be _no_ error despite the fact that B and B#foo are annotated with an annotation which cannot be resolved
fun bar(b: B) {
b.foo("")
}