Files
swift-mirror/test/NameLookup/Inputs/HasPrivateAccess1.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
407 B
Swift

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