Files
swift-mirror/test/NameLookup/Inputs/HasPrivateAccess2.swift
Hamish Knight 5b99c2020f NFC: Re-organize NameBinding tests
The directory currently seems to have a mix of
tests for import resolution and name lookup.
Therefore split it into two directories;
ImportResolution and NameLookup.
2020-03-29 18:51:09 -07:00

13 lines
423 B
Swift

private var global: String = "abc"
extension MyStruct {
private static func method() -> String? { return nil }
}
// Note: These are deliberately 'private' here and 'internal' in the other file.
// They're testing that we don't filter out non-discriminated decls in lookup.
private func process(_ x: String) -> String { return x }
extension MyStruct {
private static func process(_ x: String) -> String { return x }
}