F#->;泛型类型-多个非结构
我的第一个想法是:F#->;泛型类型-多个非结构,f#,F#,我的第一个想法是: type ManyNavigationPropertyInfo<'a,'b>(cfg:ManyNavigationPropertyConfiguration<'a, 'b>) = 它出现了两个编译器错误,即'a和'b应该是而不是struct您的第一个想法是正确的。你应该能够写: type ManyNavigationPropertyInfo<'a,'b> (cfg:ManyNavigationPropertyConfigur
type ManyNavigationPropertyInfo<'a,'b>(cfg:ManyNavigationPropertyConfiguration<'a, 'b>) =
它出现了两个编译器错误,即
'a
和'b
应该是而不是struct
您的第一个想法是正确的。你应该能够写:
type ManyNavigationPropertyInfo<'a,'b>
(cfg:ManyNavigationPropertyConfiguration<'a, 'b>) =
// ...
(但如果你能发布更多的代码,也许有人能给出具体的建议。)你的第一个想法是正确的。你应该能够写:
type ManyNavigationPropertyInfo<'a,'b>
(cfg:ManyNavigationPropertyConfiguration<'a, 'b>) =
// ...
(但如果你能发布更多的代码,也许有人能给出具体的建议。)
type ManyNavigationPropertyInfo<'a, 'b when 'a : not struct and 'b : not struct>( ... )