此代码有效
type UserNode(myid:int64, labeled:bool) =
static member SkypeId (x:UserNode) = x.SkypeI
member this.SkypeI = myid
然而这个没有:“SkypeId 不是实例方法”
我认为我唯一的区别是“d”和 SkypeI 的结尾
type UserNode(myid:int64, labeled:bool) =
static member SkypeId (x:UserNode) = x.SkypeId
member this.SkypeId = myid
我在这里想念什么......?
好吧,奇怪的是,它将 SkypeId 识别为正在定义的静态方法....