Skip to content

Commit c4ecde5

Browse files
Repo AssistCopilot
authored andcommitted
fix: replace deprecated bare range expressions in tests with list literals
Bare range expressions like `{ 1..10 }` used as constructor arguments are deprecated in newer F# compilers (error FS3873). Replace with list literals `[1..10]` in two places in TaskSeq.Concat.Tests.fs. This fixes a build failure with .NET SDK 10.x / F# 9.x and later. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0fccf7b commit c4ecde5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharp.Control.TaskSeq.Test/TaskSeq.Concat.Tests.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ module SideEffect =
249249
let mutable i = 0
250250

251251
taskSeq {
252-
yield ResizeArray { 1..10 }
253-
yield ResizeArray { 1..10 }
252+
yield ResizeArray [1..10]
253+
yield ResizeArray [1..10]
254254

255255
yield
256256
ResizeArray(

0 commit comments

Comments
 (0)