test for class extending a class with a private constructor

This commit is contained in:
Egor.Ushakov
2017-04-26 15:54:26 +03:00
parent 8c440e281c
commit d40f673689
9 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package pkg;
class TestInner2 {
private TestInner2() {}
private TestInner2(int a) {}
class Another extends TestInner2 {
Another() {
}
}
static class AnotherStatic extends TestInner2 {
AnotherStatic() {
}
}
class Another2 extends TestInner2 {
Another2() {
super(2);
}
}
static class AnotherStatic2 extends TestInner2 {
AnotherStatic2() {
super(2);
}
}
}