class A { synchronized fun foo() { bar() } fun bar() { } }