Files
kotlin-fork/compiler/testData/codegen/box/annotations/intrinsicConstEvaluationInSources.kt
T
Dmitriy Novozhilov 555cf56d6d [FIR2IR] Don't manually create IR for IntrinsicConstEvaluation if not needed
There is no need to create IR class for `@IntrinsicConstEvaluation` manually
  if it is present in sources

^KT-65415 Fixed
2024-03-12 06:46:09 +00:00

18 lines
442 B
Kotlin
Vendored

// IGNORE_BACKEND_K1: JS_IR, JS_IR_ES6, WASM, NATIVE
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6, WASM, NATIVE
// non-jvm backends are ignored because of KT-66432
// ISSUE: KT-65415, KT-66432
// FILE: IntrinsicConstEvaluation.kt
package kotlin.internal
annotation class IntrinsicConstEvaluation
// FILE: usage.kt
import kotlin.internal.IntrinsicConstEvaluation
@IntrinsicConstEvaluation
fun test(): String = "OK"
fun box(): String = test()