Files
kotlin-fork/nj2k/testData/newJ2k/overloads/Synchronized.kt
T
2019-04-03 11:24:19 +03:00

16 lines
273 B
Kotlin
Vendored

internal class A {
fun foo(p: Int) {
println("p = [$p]")
}
@Synchronized
fun foo() {
foo(calcSomething())
}
// this method should be invoked under synchronized block!
private fun calcSomething(): Int {
return 0
}
}