Files
Marco Pennekamp a38d613dc3 [LL] Add getOrBuildFir test for deserialized enum entry annotation argument
- The `getOrBuildFir` test clearly shows the difference between the
  unresolved enum entry and the resolved one (see the next commit).

^KT-63330
2024-02-01 20:26:58 +00:00

26 lines
482 B
Kotlin
Vendored

// KT-63330
// SKIP_WHEN_OUT_OF_CONTENT_ROOT
// MODULE: library1
// MODULE_KIND: LibraryBinary
// FILE: EnumClass.kt
enum class EnumClass {
First, Second
}
@Target(AnnotationTarget.TYPE)
annotation class Anno(val enumEntry: EnumClass)
// MODULE: library2(library1)
// MODULE_KIND: LibraryBinary
// FILE: Usage.kt
class Usage
val usage: @Anno(EnumClass.First) Usage = Usage()
// MODULE: main(library1, library2)
// FILE: main.kt
fun foo() {
<expr>val x = usage</expr>
}