mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
209 B
Plaintext
15 lines
209 B
Plaintext
public class C {
|
|
fileprivate func new_name(_ aaa: inout Int) {
|
|
aaa = aaa + 3
|
|
if aaa == 3 { aaa = 4 }
|
|
}
|
|
|
|
/// Insert before this.
|
|
public func foo() -> Int{
|
|
var aaa = 1 + 2
|
|
new_name(&aaa)
|
|
return aaa
|
|
}
|
|
}
|
|
|