For loop not inferring unsigned integer [duplicate]
问题 This question already has answers here : Why are simple for loop expressions restricted to integer ranges? (3 answers) Closed 5 years ago . According to the MSDN documentation on the for ... to loop in F#: The type of the identifier is inferred from the type of the start and finish expressions. Types for these expressions must be 32-bit integers. But, with the code below, I get the following compile-time error: for bar = 0u to 5u do let baz : uint32 = bar () error FS0001: This expression was