Skip to content

Commit

Permalink
Swift 5.5 Support (#70)
Browse files Browse the repository at this point in the history
* Fix

* tmp
  • Loading branch information
stephencelis authored Aug 8, 2023
1 parent 3b7becc commit 23cbf22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
strategy:
matrix:
include:
- { toolchain: wasm-5.6.0-RELEASE }
- { toolchain: wasm-5.5.0-RELEASE }

steps:
- uses: actions/checkout@v3
- run: echo "${{ matrix.toolchain }}" > .swift-version
- uses: swiftwasm/swiftwasm-action@v5.6
- uses: swiftwasm/swiftwasm-action@v5.5
with:
shell-action: swift build
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension RangeReplaceableCollection { fileprivate static var placeholder: Self
private protocol _OptionalProtocol { static var none: Self { get } }
extension Optional: _OptionalProtocol {}
private func _optionalPlaceholder<Result>() throws -> Result {
if let result = (Result.self as? any _OptionalProtocol.Type) {
if let result = (Result.self as? _OptionalProtocol.Type) {
return result.none as! Result
}
throw PlaceholderGenerationFailure()
Expand Down

0 comments on commit 23cbf22

Please sign in to comment.