Open
Description
openedon Nov 17, 2017
function foo() {
let c = 3;
switch (c) {
case 4:
let c = 5;
break;
}
}
Expected: should be accepted
Actual:
JSC_REFERENCE_BEFORE_DECLARE_ERROR: Illegal variable reference before declaration: c at line 3 character 10
switch (c) {
^
Compiler link:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment