c00c7ffbe0
It is not enough to store evaluated constants only by <startOffset, endOffset> pair. We need to consider case there constant can be located in different files with the same offset but with different values. #KT-57928 Fixed #KT-57929 Fixed
24 lines
452 B
Kotlin
Vendored
24 lines
452 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// TARGET_BACKEND: JS_IR
|
|
// TARGET_BACKEND: NATIVE
|
|
|
|
// MODULE: lib
|
|
// FILE: lib.kt
|
|
|
|
@Target(AnnotationTarget.CLASS)
|
|
@Retention(AnnotationRetention.BINARY)
|
|
annotation class AnnotationWithDefault(val str: String = "Str" <!EVALUATED("String")!>+ "ing"<!>)
|
|
|
|
@AnnotationWithDefault()
|
|
class A
|
|
|
|
@AnnotationWithDefault(<!EVALUATED("Other")!>"Other"<!>)
|
|
class B
|
|
|
|
// MODULE: main
|
|
// FILE: main.kt
|
|
|
|
fun box(): String {
|
|
return "OK"
|
|
}
|