Add new internal annotation IntrinsicConstEvaluation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user