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