enumBasics1.ts(26,5): error TS2339: Property 'A' does not exist on type 'E.A'.
enumBasics1.ts(35,2): error TS2432: In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.


==== enumBasics1.ts (2 errors) ====
    enum E {
    	A = 1,
    	B,
    	C
    }
    
    /*
    var a: E;
    var b = E["B"]; // shouldn't error
    
    
    function foo(e: E) {}
    
    foo(a); // shouldn't error
    
    
    class C {
    	public e: E;
    
    	public m(): E { return this.e; } // shouldn't error
    }
    
    
    var e = E; // shouldn't error
    */
    E.A.A; // should error
        ~
!!! error TS2339: Property 'A' does not exist on type 'E.A'.
    
    
    enum E2 {
    	A,
    	B,
    }
    
    enum E2 { // should error for continued autonumbering
    	C,
    	~
!!! error TS2432: In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.
    	D,
    }