Skip to content

Commit f6abc0d

Browse files
committed
Remove compile error
1 parent bdc070d commit f6abc0d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/FSharp.Control.TaskSeq.Test/CEPoC.fs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ open FsUnit.Xunit
55

66
open FSharp.Control
77

8+
///
9+
/// EXAMPLE OF USING BIND AND YIELD AND CUSTOM:
10+
/// https://github.com/cannorin/FSharp.CommandLine/blob/master/src/FSharp.CommandLine/commands.fs
11+
///
812
913
module CEs =
1014

@@ -192,8 +196,10 @@ module CEs =
192196
let y = 2
193197
let z = 3
194198
let! foo = Unchecked.defaultof<M<double>>
195-
Name "a"
196-
Member 4.0
199+
// leaving the following two lines in creates an "expected to have type unit" error
200+
//Name "a"
201+
//Member 4.0
202+
() // cannot end with a let!
197203
}
198204

199205
let z7: M<double> = ce {

0 commit comments

Comments
 (0)