a38d613dc3
- The `getOrBuildFir` test clearly shows the difference between the unresolved enum entry and the resolved one (see the next commit). ^KT-63330
26 lines
482 B
Kotlin
Vendored
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>
|
|
}
|