E.g. probe1() and probe2() should both evaluate to inside, but the scope analyzer will report that probe2 evaluates to outside.
let x = 'outside';
var probe1, probe2;
switch (null) {
case null:
let x = 'inside';
probe1 = function() { return x; };
case null:
probe2 = function() { return x; };
}
E.g.
probe1()
andprobe2()
should both evaluate toinside
, but the scope analyzer will report thatprobe2
evaluates tooutside
.