Commit 57f46435 authored by Drew's avatar Drew

Update for snapshot swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a

parent 428e6672
Pipeline #1199 passed with stage
FROM drewcrawford/swift:latest
RUN apt-get update && apt-get install --no-install-recommends xz-utils -y
ADD https://github.com/AnarchyTools/atbuild/releases/download/0.7.1/atbuild-0.7.1-linux.tar.xz /atbuild.tar.xz
ADD https://github.com/AnarchyTools/atbuild/releases/download/0.8.1/atbuild-0.8.1-linux.tar.xz /atbuild.tar.xz
RUN tar xf atbuild.tar.xz -C /usr/local
ADD . /atpkg
WORKDIR atpkg
......
......@@ -31,4 +31,13 @@ extension NSString {
return (self as String)
#endif
}
}
\ No newline at end of file
}
//these parts of the Swift 3 API changes are not yet implemented on Linux
#if os(Linux)
extension String {
public func replacingOccurrences(of target: String, with replacement: String, options: NSStringCompareOptions = [], range searchRange: Range<Index>? = nil) -> String {
return self.stringByReplacingOccurrencesOfString(target, withString: replacement, options: options, range: searchRange)
}
}
#endif
\ No newline at end of file
......@@ -16,7 +16,7 @@
import Foundation
extension String : ErrorTypeCompatibility {}
extension String : ErrorProtocol {}
enum test {
static func assert(condition: Bool, file: String = #file, functionName: String = #function, line: Int = #line) throws {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment