Files
swift-mirror/test/Serialization/Inputs/struct_with_operators.swift
Jordan Rose 5557c3972b Update tests for accessibility.
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
2014-06-30 18:50:40 +00:00

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")
}