I have heard that LLM's transpile between languages perfectly. They'll be able to fix problems like this.
However on a serious note, "the industry" fears even writing the entire codebase in a 'non common' language because of it, let alone your strawman idea of multiple languages.
If everyone in a code base wrote in a different programming language, the code base would suck.