Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/inline/synchronizedOnInline.kt
T
2021-08-19 15:25:43 +03:00

18 lines
447 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
<!SYNCHRONIZED_ON_INLINE!>@Synchronized<!>
inline fun foo(f: () -> Unit): Unit = f()
var bar: String
<!SYNCHRONIZED_ON_INLINE!>@Synchronized<!>
inline get() = ""
<!SYNCHRONIZED_ON_INLINE!>@Synchronized<!>
inline set(value) {}
inline var baz: String
<!SYNCHRONIZED_ON_INLINE!>@Synchronized<!>
get() = ""
<!SYNCHRONIZED_ON_INLINE!>@Synchronized<!>
set(value) {}