You can fix it like this:

1
2
3
let test x = printfn "n"
let finall x = x : 'a -> unit
let i x = finall test x

The difference is "let ident = ..." looks like "ident" is a value, whereas "let ident arg = ..." looks like "ident" is a function (that's the "syntactic function").

(I think this transformation is called eta-conversion. [link:en.wikipedia.org])

By on 11/18/2008 7:25 AM ()

Great, got it. Thank you.

By on 1/8/2009 3:46 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