Open Andreas-Dorfer opened 1 year ago
It is supported for instance members, not sure what's the issue with statics: https://github.com/fsharp/fslang-suggestions/issues/545
@gusty will this also be fixed by https://github.com/dotnet/fsharp/pull/16199 ?
No @edgarfgp , #16199 is about allowing 'interface .. with' within an interface, in this case is a type which is already supported.
Program.fs(13,15): error FS0909: All implemented interfaces should be declared on the initial declaration of the type
is already solved in F#8 by #16157
However if I find time I could have a look and see where the issue is, in the compiler.
Thanks for the clarification. Happy to work together on this if do not have much time
I'm experimenting with the new
System.Numerics
namespace and came across an issue with generic interfaces with static abstract members. I cannot implement a generic interface with static abstract members with different generic arguments. In this example, I want to implementIMultiplyOperators<Vector, double, Vector>
andIMultiplyOperators<Vector, Vector, Vector>
.I'm getting the following compiler errors:
VectorTry.zip