mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
13 lines
407 B
Swift
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 }
|
|
}
|