I'm using F# 3.1 on VS2013. The following code causes the following error message
"Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved.".
I cannot figure out why this happens since all types used here are well-known (from .Net framework itself). Can anyone shed me light please?
open System.IO
open System.Collections.Generic
type A() as me =
let drives = new List<DriveInfo>()
let x = me.SelectedDrive
let y = x.RootDirectory // this causes "Lookup on object of indeterminate type..."
member this.SelectedDrive with get() = drives.[0]