tests/cases/conformance/classes/classStaticBlock/classStaticBlockUseBeforeDef3.ts(14,21): error TS2448: Block-scoped variable 'FOO' used before its declaration.
tests/cases/conformance/classes/classStaticBlock/classStaticBlockUseBeforeDef3.ts(14,21): error TS2454: Variable 'FOO' is used before being assigned.


==== tests/cases/conformance/classes/classStaticBlock/classStaticBlockUseBeforeDef3.ts (2 errors) ====
    class A {
        static {
            A.doSomething(); // should not error
        }
    
        static doSomething() {
           console.log("gotcha!");
        }
    }
    
    
    class Baz {
        static {
            console.log(FOO);   // should error
                        ~~~
!!! error TS2448: Block-scoped variable 'FOO' used before its declaration.
!!! related TS2728 tests/cases/conformance/classes/classStaticBlock/classStaticBlockUseBeforeDef3.ts:18:7: 'FOO' is declared here.
                        ~~~
!!! error TS2454: Variable 'FOO' is used before being assigned.
        }
    }
    
    const FOO = "FOO";
    class Bar {
        static {
            console.log(FOO); // should not error
        }
    }
    
    let u = "FOO" as "FOO" | "BAR";
    
    class CFA {
        static {
            u = "BAR";
            u;  // should be "BAR"
        }
    
        static t = 1;
    
        static doSomething() {}
    
        static {
            u;  // should be "BAR"
        }
    }
    
    u; // should be "BAR"
    