mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
437 B
Swift
12 lines
437 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
class C {
|
|
private init() {}
|
|
init(n: Int) {} // expected-note {{'init(n:)' declared here}}
|
|
}
|
|
|
|
// TODO(diagnostics): Once "inaccessible members" are ported to the new framework it would be possible
|
|
// to bring back `'C' initializer is inaccessible due to 'private' protection level` diagnostic here.
|
|
_ = C()
|
|
// expected-error@-1 {{missing argument for parameter 'n' in call}} {{7-7=n: <#Int#>}}
|