Files
kotlin-fork/j2k/testData/fileOrElement/overloads/Synchronized.kt
T
2015-09-18 15:44:18 +03:00

15 lines
269 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
}
}