mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
215 B
Plaintext
19 lines
215 B
Plaintext
class C {
|
|
fileprivate func new_name() -> Int {
|
|
var a = 3 + 1
|
|
a = 3
|
|
return a
|
|
}
|
|
|
|
func foo1() -> Int {
|
|
return new_name()
|
|
}
|
|
|
|
static func foo2() -> Int {
|
|
var a = 3 + 1
|
|
a = 3
|
|
return a
|
|
}
|
|
}
|
|
|