class CC { companion object { fun getInstance(): CC {} } } fun foo(): CC { return C } // ORDER: CC // ORDER: getInstance