I often see the @InlineOnly annotation when browsing Kotlin\'s stdlib. As far as I recall the annotation only happens to be on inline
functions. What is the pur
To quote an answer found here:
InlineOnly means that the Java method corresponding to this Kotlin function is marked private so that Java code can not access it (which is the only way to call an inline function without actually inlining it).
This annotation is internal
only because
This annotation was added in the last moment before release, so we hadn't time to validate the design and decided to keep it internal for a while. There are good chances we make it public later.