BUG: Compiler should error with the code fragment but doesn't


1 comment

  • Piotr Gnys

    I understand, that issue here is that there is again "var i" used, except of that this code is totally valid and there's nothing wrong against using same variable in sub-loop if you know what you're doing.

    However, writing:

    var i = 1;
    var i = 2;

    in same block of code indeed looks weird and should at least raise suggestion (same as unused variables).

    Comment actions Permalink

Please sign in to leave a comment.