It was happening because for MyClass.foo we didn't set overriddenSymbols properly because in ClassMemberGenerator.convertFunctionContent we used incorrect containingFirClass that was pointing to anonymous class instead of MyClass. ^KT-58902 Fixed