[FIR] Allow annotation instantiation.

This commit disables the frontend error reporting for supported cases.
This commit is contained in:
Mads Ager
2021-11-02 17:17:34 +01:00
committed by TeamCityServer
parent 56d472451c
commit b79ca7d7df
24 changed files with 32 additions and 78 deletions
@@ -1,7 +1,9 @@
// With FIR the annotation implementation class is not regenerated as it
// is seen as coming from the same module.
// See IrSourceCompilerForInline.kt:isCallInsideSameModuleAsCallee.
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM_IR
// IGNORE_DEXING
// WITH_RUNTIME
// !LANGUAGE: +InstantiationOfAnnotationClasses
@@ -39,4 +41,4 @@ fun box(): String {
assert(one.javaClass.getEnclosingClass().getName() == "test.C")
assert(two.javaClass.getEnclosingClass().getName() == "test.C")
return "OK"
}
}