mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Right now 'fileprivate' is parsed as an alias for 'private' (or perhaps vice versa, since the semantics of 'private' haven't changed yet). This allows us to migrate code to 'fileprivate' without waiting for the full implementation.
12 lines
282 B
Swift
12 lines
282 B
Swift
public class MyClass {
|
|
public func pub_method() {}
|
|
internal func int_method() {}
|
|
fileprivate func fp_method() {}
|
|
private func priv_method() {}
|
|
}
|
|
|
|
public func pub_function() {}
|
|
internal func int_function() {}
|
|
fileprivate func fp_function() {}
|
|
private func priv_function() {}
|