blob: 8f19d92d9bd5ae213f4c1c489ef1e1793306667d [file] [log] [blame]
// RUN: not %target-swift-frontend %s -typecheck
class C {
private init() {} // expected-error {{declared here}}
init(n: Int) {}
}
_ = C()
// expected-error@-1 {{'C' initializer is inaccessible due to 'private' protection level}}