fix Issue 10616 - class C: C.D{static class D{}} does not work