You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
member _.Combine(comp1, comp2) = async.Combine(comp1, comp2)
1550
+
member _.Delay(f) = async.Delay(f)
1551
+
1552
+
let parallelCE = ParallelBuilder()
1553
+
1554
+
let testParallel() =
1555
+
parallelCE {
1556
+
let! x = async { return 1 }
1557
+
and! y = async { return 2 }
1558
+
return x + y
1559
+
}
1560
+
1561
+
let testParallel2() =
1562
+
parallelCE {
1563
+
let! (x: int) = async { return 1 }
1564
+
and! (y: int) = async { return 2 }
1565
+
return x + y
1566
+
}
1567
+
1568
+
let testParallel3() =
1569
+
parallelCE {
1570
+
let! x: int = async { return 1 }
1571
+
and! y: int = async { return 2 }
1572
+
return x + y
1573
+
}
1574
+
"""
1575
+
|> withLangVersion90
1576
+
|> typecheck
1577
+
|> shouldFail
1578
+
|> withDiagnostics [
1579
+
(Error 3350, Line 44, Col 17, Line 44, Col 20,"Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.");
1580
+
(Error 3350, Line 43, Col 14, Line 43, Col 20,"Feature 'Allow let! and use! type annotations without requiring parentheses' is not available in F# 9.0. Please use language version 'PREVIEW' or greater.")
0 commit comments