Fix for KT-14162: Support @InlineOnly on inline properties
#KT-14162 Fixed
This commit is contained in:
@@ -5,8 +5,13 @@ package test
|
||||
|
||||
fun foo() {
|
||||
inlineOnly<String>()
|
||||
inlineOnlyAnnotated()
|
||||
}
|
||||
|
||||
// No method should be generated in multifile facade for 'inlineOnly'
|
||||
// Because 'inlineOnly' is private in file part (because it's inline-only) and can't be delegated from facade
|
||||
public inline fun <reified T> inlineOnly() {}
|
||||
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.InlineOnly
|
||||
inline fun inlineOnlyAnnotated() { }
|
||||
|
||||
Reference in New Issue
Block a user