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
{{ message }}
Repository navigation
Recursive functions defined inside computation expressions fail after installing VS 15.5 preview 1 #3743
[<EntryPoint>]letmain argv =letfactorials=[for x in0..10dolet recfactorial x =match x with|0->1| x -> x * factorial(x -1)yield factorial x
]for f in factorials do printf "%i" f
0// return an integer exit code
changed the title [-]Recursive functions defined inside list comprehensions fail after installing VS 15.5 preview 1[/-][+]Recursive functions defined inside computation expressions fail after installing VS 15.5 preview 1[/+]on Oct 12, 2017
Activity
[-]Recursive functions defined inside list comprehensions fail after installing VS 15.5 preview 1[/-][+]Recursive functions defined inside computation expressions fail after installing VS 15.5 preview 1[/+]dsyme commentedon Oct 12, 2017
@dhwed Oh wow, that's a regression. The culprit will be #3536
dsyme commentedon Oct 12, 2017
@cartermp I'll start working on a fix for this regression tomorrow
dsyme commentedon Oct 12, 2017
Workaround 1 - in this case compiling in "Release" mode makes NRE go away
Workaround 2 - lift the
let recout of the list/array/sequence expression, adding any captured variables as argumentsdsyme commentedon Oct 24, 2017
Fixed by undoing the fix, When we fix the fix it will all be fixed