Quantcast
Channel: User Tarmil - Stack Overflow
Viewing all articles
Browse latest Browse all 39

Answer by Tarmil for Apparent non-coherent behaviour between F# and C# when using generics constraints

$
0
0

This is indeed a limitation in F#, you can't have a subtype constraint on two type parameters, ie 'T :> 'U. I think there's a language design suggestion to remove this limitation, although I can't find it right now.


Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>