Introduce inline-only functions
They have private visibility in bytecode
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.jvm.internal.InlineOnly
|
||||
inline fun foo() { }
|
||||
|
||||
inline fun <T> bar() { }
|
||||
|
||||
inline fun <U, reified V> baz() {}
|
||||
|
||||
class Foo {
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.jvm.internal.InlineOnly
|
||||
inline fun foo() { }
|
||||
|
||||
inline fun <T> bar() { }
|
||||
|
||||
inline fun <U, reified V> baz() {}
|
||||
}
|
||||
Reference in New Issue
Block a user