Files
swift-mirror/test/NameLookup/Inputs/accessibility_other.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

30 lines
711 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
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() {}