// @target: es2015 interface D { x: number; } class C { #x; static test() { new C().#x = 10; const y = new C(); const z = new y(); z.x = 123; } } interface C { new (): D; }