This is a long-standing bug in #light. You have to use an alternative or spread it across multiple lines.

By on 4/11/2009 6:48 AM ()

Thanks to you all.I was not aware of ths bug in #light

By on 4/14/2009 9:33 PM ()

This is a #light syntax issue. If you want this ne-line definition to work, add #light "off" at the beginning of the file, otherwise, the following will work.

1
2
3
4
5
6
7
 
#light

let x = 1
and y = 2 //other line
in print_any <| x + y 
By on 4/10/2009 6:08 AM ()

I'm not sure about using the and keyword like this but you can do this:

let x, y = (1,2) in x + y

By on 4/10/2009 1:02 AM ()
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