Any ideas on how I could add type annotation to fix this error?
I'm getting a red squiggly under Foo.Bar in getFooBar and the following error message for it.
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.
[<AllowNullLiteralAttribute>]
type Test(foo : Test, bar : int) =
let getFooBar(test : Test) =
test.Foo.Bar
member this.Foo with get() = foo
member this.Bar with get() = bar