You need to access static members via the type name:

1
2
3
4
type foo = { aa : int; bb : int }
            with
                static member bar = 12
                static member addBar x = { aa = x+foo.bar; bb = x-foo.bar }
By on 7/31/2010 7:33 AM ()

Thx!

By on 7/31/2010 7:45 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