Add new internal annotation IntrinsicConstEvaluation

This commit is contained in:
Ivan Kylchik
2021-10-28 15:14:03 +03:00
committed by teamcity
parent 46dd6520af
commit 6f448820f0
4 changed files with 31 additions and 0 deletions
@@ -33,3 +33,12 @@ internal annotation class PureReifiable
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.BINARY)
internal annotation class PlatformDependent
/**
* When applied to a function or property, enables a compiler optimization that evaluates that function or property
* at compile-time and replaces calls to it with the computed result.
*/
@Target(AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.BINARY)
@SinceKotlin("1.7")
public annotation class IntrinsicConstEvaluation