diff --git a/compiler/testData/ir/interpreter/helpers/CompileTimeCalculation.kt b/compiler/testData/ir/interpreter/helpers/CompileTimeCalculation.kt new file mode 100644 index 00000000000..76dd011ff78 --- /dev/null +++ b/compiler/testData/ir/interpreter/helpers/CompileTimeCalculation.kt @@ -0,0 +1,9 @@ +package kotlin + +/** + * Specify that marked function is calculated in compile time and it result can be stored as "const val" + * Must be used only on built ins methods and further will be replaced with "constexpr" modifier + */ +@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY) +@Retention(AnnotationRetention.BINARY) +public annotation class CompileTimeCalculation \ No newline at end of file diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/sourceProviders/IrInterpreterHelpersSourceFilesProvider.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/sourceProviders/IrInterpreterHelpersSourceFilesProvider.kt index bc3ff60b138..dfa6971bf33 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/sourceProviders/IrInterpreterHelpersSourceFilesProvider.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/sourceProviders/IrInterpreterHelpersSourceFilesProvider.kt @@ -35,7 +35,8 @@ class IrInterpreterHelpersSourceFilesProvider(testServices: TestServices) : Addi ) private const val REFLECT_PATH = "./libraries/stdlib/jvm/src/kotlin/reflect" private val EXCLUDES = listOf( - "src/kotlin/UStrings.kt", "src/kotlin/UMath.kt", "src/kotlin/UNumbers.kt", "src/kotlin/reflect/TypesJVM.kt" + "src/kotlin/UStrings.kt", "src/kotlin/UMath.kt", "src/kotlin/UNumbers.kt", "src/kotlin/reflect/TypesJVM.kt", + "core/builtins/src/kotlin/CompileTimeAnnotations.kt" ) }