Skip to content

Commit b852881

Browse files
committed
Remove unnecessary type annotations.
Scoring collection conversions should hopefully make these coercions unnecessary now.
1 parent e7e8b66 commit b852881

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

validation-test/stdlib/Stride.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ var StrideTestSuite = TestSuite("Stride")
88

99
StrideTestSuite.test("to") {
1010
checkSequence(Array(0...4), stride(from: 0, to: 5, by: 1))
11-
// FIXME: 'as Array' should not be necessary for disambiguation
12-
checkSequence(Array(1...5).reversed() as [Int], stride(from: 5, to: 0, by: -1))
11+
checkSequence(Array(1...5).reversed(), stride(from: 5, to: 0, by: -1))
1312
}
1413

1514
StrideTestSuite.test("through") {
1615
checkSequence(Array(0...5), stride(from: 0, through: 5, by: 1))
17-
// FIXME: 'as Array' should not be necessary for disambiguation
18-
checkSequence(Array(0...5).reversed() as [Int], stride(from: 5, through: 0, by: -1))
16+
checkSequence(Array(0...5).reversed(), stride(from: 5, through: 0, by: -1))
1917
}
2018

2119
runAllTests()

0 commit comments

Comments
 (0)