KT-3257 Bad diagnostics when trying to instantiate a private class

 #KT-3257 Fixed