我想知道为什么第二行告诉我灵活的类型受到了限制。显然可以绕过它,但是从中可以吸取一些教训吗?
type DataTable with
static member FromObjArray (input : seq<#seq<'T>>) = () //keep the flexibility
static member FromObjArray<'T> (input : seq<#seq<'T>>) = () //constrained to seq
我想知道为什么第二行告诉我灵活的类型受到了限制。显然可以绕过它,但是从中可以吸取一些教训吗?
type DataTable with
static member FromObjArray (input : seq<#seq<'T>>) = () //keep the flexibility
static member FromObjArray<'T> (input : seq<#seq<'T>>) = () //constrained to seq