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