fun foo1() {} deprecated("Use foo3 instead") fun foo2() {} fun foo3() {} fun test() { foo } // ORDER: foo1, foo3, foo2