mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
In most cases this means adding @public to things that get serialized; in a few cases it means using a modern public stdlib API instead of a legacy thing I was trying to keep @internal. Swift SVN r19350
16 lines
271 B
Swift
16 lines
271 B
Swift
@public struct SpecialInt {
|
|
@public var value = 0
|
|
}
|
|
|
|
operator prefix +++ {}
|
|
operator postfix +++ {}
|
|
|
|
@prefix @public func +++(inout base: SpecialInt) {
|
|
base.value += 2
|
|
}
|
|
|
|
@postfix @public func +++(inout base: SpecialInt) {
|
|
println("use the prefix form instead")
|
|
}
|
|
|