syntax - F#: always "unexpected 'when' keyword" -
The VS2010 beta 2f # compiler always complains about the use of keywords by me, even when copy -Pip code is also used to work, for example, for example, I get this error when trying to execute a very trivial expression:
"Error FS0010 : Unexpected keyword 'when' in expression. Expected '-' 'or other token. "
For i [1..50 in i & lt; 10 - & gt; I] --------------- ^^^^
You want
for [i in 1..50 if i
The 'short' syntax was deleted with 'short time'.
See "Compact Sequence Expression" in that document.
Comments
Post a Comment