Inline preevaluated string and primitive only constants in compilation time, don't inline const references in non-annotation context, fix for KT-11025: Don't inline const val in compare instuctions
#KT-11025 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const val z = "OK"
|
||||
|
||||
annotation class A(val value: String = z)
|
||||
|
||||
@A
|
||||
class Test
|
||||
|
||||
fun box(): String {
|
||||
return Test::class.java.getAnnotation(A::class.java).value
|
||||
}
|
||||
Reference in New Issue
Block a user