How to get generic type definition for CRTP type
问题 Given the following CRTP type in C#: public abstract class DataProviderBase<TProvider> where TProvider : DataProviderBase<TProvider> { } How would I get its generic type definition in F#? let typeDef = typedefof<DataProviderBase<_>> yields the error: Type constraint mismatch when applying the default type 'DataProviderBase<'a>' for a type inference variable. The resulting type would be infinite when unifying ''a' and 'DataProviderBase<'a>' Consider adding further type constraints In C#, it