If you upgrade to the latest F#, the diagnostic is more specific:

The value 'Get' was marked inline but its implementation makes use of an internal or private function which is not sufficiently accessible

which suggests the problem - inline members cannot directly access private data (how could a client inline it?)

By on 10/27/2009 2:47 AM ()

Thanks. Don't know if this is the best approach, but this works:

1
2
3
4
type Test() =
  let data = vector [1.0;2.0]
  member self.Data = data
  member inline self.Get(i) = self.Data.[i]
By on 10/27/2009 3:00 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