40ecd4bc1e
Backend requires annotation constructors to be fully resolved for the 'IrConst' default value lowering. However, in the IDE there is usually no need in complete annotation class resolution. ^KTIJ-27061 Fixed
18 lines
243 B
Kotlin
Vendored
18 lines
243 B
Kotlin
Vendored
// FILE: lib.kt
|
|
package lib
|
|
|
|
@Target(AnnotationTarget.FUNCTION)
|
|
annotation class Anno(val x: String = "foo")
|
|
|
|
// FILE: main.kt
|
|
import lib.Anno
|
|
|
|
@Anno
|
|
fun foo(): Int = 5
|
|
|
|
@Anno(x = "bar")
|
|
fun bar(): Int = 10
|
|
|
|
fun test() {
|
|
<caret>val x = 0
|
|
} |