我有一个方法:
member this.Get<'IAMSOMETHING when 'IAMSOMETHING : not struct>([<ParamArray>] parameters:obj[]) : 'IAMSOMETHING=
if typeof<'IAMSOMETHING> = typeof<IProvideAbilities> then
this._issues :?> 'IAMSOMETHING
else
raise(System.NotImplementedException())
this.Issues
是会员。我有一个错误:
会员&#39;在&#39; IAMSOMETHING时获取&#39; IAMSOMETHING:not struct and &#39; IAMSOMETHING:&gt;问题&GT; :obj [] - &gt; &#39; IAMSOMETHING当&#39; IAMSOMETHING :不是结构和&#39; IAMSOMETHING:&gt;问题&#39;没有正确的 用于覆盖相应抽象方法的类型。所需 当&#39; IAMSOMETHING:not struct&gt;时,签名是“&lt;&#39; IAMSOMETHING”。 :obj [] - &gt; &#39; IAMSOMETHING当&#39; IAMSOMETHING:not struct&#39;。
如何将this.Issues
投射到IAMSOMETHING
?
非常感谢。