blob: f4b6443d6e7f51bc8fc466a0f6217a831b364121 [file] [log] [blame]
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
}
}