Skip to content

Commit aec6c8a

Browse files
Add seq literal and for-arrow sequence coverage
Co-authored-by: multica-agent <github@multica.ai>
1 parent 2feeea6 commit aec6c8a

5 files changed

Lines changed: 1184 additions & 2 deletions

File tree

tests/FSharp.Compiler.ComponentTests/EmittedIL/SeqExpressionStepping/SeqExpressionStepping.fs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,11 @@ module SeqExpressionStepping =
6767
compilation
6868
|> getCompilation
6969
|> verifyCompilation
70-
#endif
70+
#endif
71+
72+
// SOURCE=SeqExpressionSteppingTest08.fs SCFLAGS="-g --test:EmitFeeFeeAs100001 --optimize-" COMPILE_ONLY=1 POSTCMD="..\\CompareIL.cmd SeqExpressionSteppingTest8.exe" # SeqExpressionSteppingTest8.fs -
73+
[<Theory; FileInlineData("SeqExpressionSteppingTest08.fs", Realsig=BooleanOptions.Both)>]
74+
let ``SeqExpressionSteppingTest08_fs`` compilation =
75+
compilation
76+
|> getCompilation
77+
|> verifyCompilation
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// #NoMono #NoMT #CodeGen #EmittedIL #Sequences
2+
module SeqExpressionSteppingTest8
3+
module SeqExpressionSteppingTest8 =
4+
5+
let directValues () =
6+
seq { 1; 2; 3 }
7+
8+
let doubledWithForArrow xs =
9+
seq { for x in xs -> x * 2 }
10+
11+
let _ = directValues () |> Seq.length
12+
let _ = doubledWithForArrow [ 1; 2; 3 ] |> Seq.length

0 commit comments

Comments
 (0)