Files
swift-mirror/test/NameLookup/Inputs/accessibility_other.swift
Becca Royal-Gordon db19c19e19 Let module lookups ignore access control
…at least for declarations in the current module. We continue to pretend that inaccessible declarations in other modules do not exist.
2023-12-13 11:09:49 -08:00

30 lines
750 B
Swift

import has_accessibility
public let a = 0 // expected-note * {{did you mean 'a'?}}
internal let b = 0 // expected-note * {{did you mean 'b'?}}
private let c = 0 // expected-note {{'c' declared here}}
extension Foo {
public static func a() {}
internal static func b() {}
private static func c() {} // expected-note {{'c()' declared here}}
}
struct PrivateInit {
private init() {} // expected-note {{'init()' declared here}}
}
extension Foo {
private func method() {}
private typealias TheType = Float
}
extension OriginallyEmpty {
func method() {}
typealias TheType = Float
}
private func privateInBothFiles() {}
func privateInPrimaryFile() {} // expected-note {{previously declared here}}
private func privateInOtherFile() {}