mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the non-generic toString versions and create a single @readonly toString function that can be used by convertFromStringInterpolationSegment.
Swift SVN r21050
This commit is contained in:
@@ -263,12 +263,12 @@ extension String : StringInterpolationConvertible {
|
||||
}
|
||||
|
||||
public static func convertFromStringInterpolationSegment<T>(expr: T) -> String { return toString(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: Int) -> String { return toString(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: String) -> String { return toString(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: Float) -> String { return toString(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: Bool) -> String { return toString(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: UInt8) -> String { return toString(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: UInt32) -> String { return toString(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: Int) -> String { return toStringReadOnly(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: String) -> String { return toStringReadOnly(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: Float) -> String { return toStringReadOnly(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: Bool) -> String { return toStringReadOnly(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: UInt8) -> String { return toStringReadOnly(expr) }
|
||||
public static func convertFromStringInterpolationSegment(expr: UInt32) -> String { return toStringReadOnly(expr) }
|
||||
}
|
||||
|
||||
public func +(var lhs: String, rhs: String) -> String {
|
||||
|
||||
Reference in New Issue
Block a user