mirror of
https://github.com/apple/swift.git
synced 2026-10-04 11:58:22 +02:00
8 lines
124 B
Swift
8 lines
124 B
Swift
func compute(_ fn: () -> Int32) -> Int32 {
|
|
return fn() + privateFn()
|
|
}
|
|
|
|
private func privateFn() -> Int32 {
|
|
return 40
|
|
}
|