Files
swift-mirror/test/Serialization/Inputs/struct_with_operators.swift
Jordan Rose e9f6fba434 Update tests for memberwise accessibility.
Swift SVN r19354
2014-06-30 18:50:51 +00:00

17 lines
291 B
Swift

@public struct SpecialInt {
@public var value = 0
@public init() {}
}
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")
}