Looks like a bug; I'll file one.

A simple workaround seems to be to add a let, e.g. in VS2010, I can put a breakpoint on the 'let r' line below:

1
2
3
4
5
6
7
let isPrime n =
    let rec check i =
        let r = i > n/2 || (n % i <> 0 && check (i + 1))
        r
    check 2
 
isPrime 87
By on 7/12/2010 12:02 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper