Add CompileTimeCalculation annotation as helper to interpreter's tests
This commit is contained in:
committed by
TeamCityServer
parent
524189132b
commit
6482abc602
@@ -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
|
||||
Reference in New Issue
Block a user