mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
164 B
Plaintext
12 lines
164 B
Plaintext
fileprivate func new_name(_ a: inout [Int]) -> [Int] {
|
|
a[0] = 3
|
|
a[1] = 4
|
|
a[3] = 4
|
|
return a
|
|
}
|
|
|
|
func foo(_ a : inout [Int]) -> [Int] {
|
|
return new_name(&a)
|
|
}
|
|
|