=== tests/cases/compiler/letDeclarations-scopes2.ts ===
let global = 0;
>global : number
>0 : 0

{ 
    let local = 0;
>local : number
>0 : 0

    local;  // OK
>local : number

    global; // OK
>global : number

    local2; // Error
>local2 : any

    {
        let local2 = 0;
>local2 : number
>0 : 0

        local;  // OK
>local : number

        global; // OK
>global : number

        local2; // OK
>local2 : number
    } 

    local;  // OK
>local : number

    global; // OK
>global : number

    local2; // Error
>local2 : any
}

local;  // Error
>local : any

global; // OK
>global : number

local2; // Error
>local2 : any

