With the following JavaScript
if (someCondition){
   var x = ...; //Resharper warns that this is a duplicate declaration
}
else {
   var x = ...; //Resharper warns that this is a duplicate declaration
}
But the scopes are different? Why does this matter? Is this exclusive to JavaScript?
I get no such warning with equivalent code in C#.
Or -- Is it an erroneous Resharper warning?
 
    