tests/cases/compiler/destructuringAssignment_private.ts(6,10): error TS2341: Property 'x' is private and only accessible within class 'C'.
tests/cases/compiler/destructuringAssignment_private.ts(7,4): error TS2341: Property 'o' is private and only accessible within class 'C'.


==== tests/cases/compiler/destructuringAssignment_private.ts (2 errors) ====
    class C {
        private x = 0;
        private o = [{ a: 1 }];
    }
    let x: number;
    ([{ a: { x } }] = [{ a: new C() }]);
             ~
!!! error TS2341: Property 'x' is private and only accessible within class 'C'.
    ({ o: [{ a: x }]} = new C());
       ~
!!! error TS2341: Property 'o' is private and only accessible within class 'C'.
    