In that case, they should have deprecated the "function(){}" notation or at least made it such that arrow function doesn't overlap it.
The current scene is that most people don't know what the real difference between arrow and function notations and this leads to a lot more number of bugs than if they weren't this overlapping. Overall, my point is, this just leads to poor ergonomics and you'll have a larger number of avoidable bugs.