本文介绍了什么是@InlineOnly批注?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我 请参见 the 注释stdlib.据我所知,注释仅碰巧在inline
函数上.此注释的目的是什么?总是内联inline
函数不是很明显吗?它的文档并没有真正的帮助
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 purpose of this annotation? Isn't it obvious that inline
functions are always inlined? It's documentation isn't really helpful
是否可以将内联函数称为非内联函数?
Is it possible for inline functions to be called not inline?
推荐答案
引用找到的答案此处:
此注释之所以是internal
,是因为
This annotation is internal
only because
这篇关于什么是@InlineOnly批注?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!