Skip to content

Commit 072588c

Browse files
authored
Fix a couple of deprecation warnings when building with the .NET 10 SDK (#2876)
1 parent 9b24b87 commit 072588c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/Fake.Core.UnitTests/Fake.DotNet.FxCop.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ let testCases =
288288
}
289289

290290
let dummy = Guid.NewGuid().ToString()
291-
let levels = { 0..5 }
291+
let levels = seq { 0..5 }
292292

293293
let maps =
294294
[| [ ("string(count(//Issue[@Level='CriticalError']))", 1)
@@ -317,7 +317,7 @@ let testCases =
317317
("string(count(//Issue[@Level='Warning']))", 0) ]
318318
|> Map.ofList |]
319319

320-
let mapIndexes = { 0..4 }
320+
let mapIndexes = seq { 0..4 }
321321

322322
let messages =
323323
[| "FxCop found 1 critical errors."

0 commit comments

Comments
 (0)