Skip to content

Commit 1cc2aa9

Browse files
author
Chaitanya Kumar
committed
test: add Swift 6.1.0 to compiletime crash tests
1 parent 33bdda4 commit 1cc2aa9

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
swift: ["6.0.3"]
17+
swift: ["6.0.3", "6.1.0"]
1818
container: swift:${{ matrix.swift }}
1919
steps:
2020
- uses: actions/checkout@v4
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# OK
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# OK
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# OK

CompiletimeCrashTests/c012-sil-verification-failed-method-not-in-vtable/main.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import _Differentiation
66
public protocol TensorView {
77
associatedtype Element
88
}
9-
public protocol DifferentiableTensorView: TensorView & Differentiable where Self == TangentVector {}
9+
// NB: `AdditiveArithmetic` added in response to warning in Swift 6.1
10+
public protocol DifferentiableTensorView: AdditiveArithmetic & TensorView & Differentiable where Self == TangentVector {}
1011

1112
public protocol PlatformAPI {
1213
@differentiable(reverse)

0 commit comments

Comments
 (0)