Closed yegor256 closed 4 months ago
@yegor256 are you sure about the example? this(1);
should call private ctor in this case
@pnatashap you are right, my mistake, I updated the example above
@yegor256 should it be closed?
@vladislav-yevtushenko yes, thanks!
This code should be illegal:
Instead, this private constructor should be public or protected or package visible.