【发布时间】:2011-05-06 13:05:23
【问题描述】:
我怎样才能以这种类型调用 send(a:'T [])?
type Test() =
member o.send(value:'T) = 4
member o.send(values:'T []) = 5
let test = Test()
let b = test.send [|4|]
当我这样做时,我得到了
A unique overload for method 'Send' could not be determined based on type information
prior to this program point. The available overloads are shown below...
关键是 MPI.NET 正好有这个称为 Send 的方法,但我无法向其中发送数组。
谢谢你,
奥尔德里奇
【问题讨论】: