Not sure why the pass in parameter's property cannot be invoked. But I found a workaround.
type A =
with get(i:int) : float32 = failwith ".."
and set (i:int) (v:float32) = failwith ".."
// this version does not work as c is not mutable
// let sample (a:A) (b:A) (c:A) =
// c. <- a. + b.
you have to use:
let sample (a:A) (b:A) (c:byref)=
c. <- a. + b.
Post a Comment