You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/Ryan/Downloads/Assertions-master/Assertions/Assertions.swift:87:25: Cannot convert value of type 'String' to expected argument type 'StaticString'
/Users/Ryan/Downloads/Assertions-master/Assertions/Assertions.swift:95:25: Cannot convert value of type 'String' to expected argument type 'StaticString'
The relevant code is:
// MARK: - Failure
/// Logs a failed assertion.
///
/// Returns nil, for use in `x ?? failure(…)` expressions.
public func failure<T>(message: String, file: String = __FILE__, line: UInt = __LINE__) -> T? {
XCTFail(message, file: file, line: line)
return nil
}
/// Logs a failed assertion.
///
/// Returns nil, for use in `x ?? failure(…)` expressions.
public func failure(message: String, file: String = __FILE__, line: UInt = __LINE__) -> Bool {
XCTFail(message, file: file, line: line)
return false
}
Looks like String needs conversion to StaticString for passing into XCTFail.
Maybe I'm missing something, but I can't find a clear way to perform that conversion. Any ideas?
The text was updated successfully, but these errors were encountered:
This fails to build with Swift 2.2.1.
The errors are as follows:
The relevant code is:
Looks like
String
needs conversion toStaticString
for passing intoXCTFail
.Maybe I'm missing something, but I can't find a clear way to perform that conversion. Any ideas?
The text was updated successfully, but these errors were encountered: