package source fun sourcePackFun(){} object SourceObject { fun foo() { other() sourcePackFun() bar++ } var bar = 1 fun other() { foo() } }