An error should be output for the following code, but semantic does not report any errors:
function a() {}
var a = ''
playground
When I run this on Node, I get SyntaxError: Identifier 'a' has already been declared.
The error is properly shown for
var a = ''
function a() {}
Maybe related to #15961