New SRTP Aliases constraints giving "Invalid constraint." #15567
Unanswered
TheAngryByrd
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Is it supposed to work with multiple generic parameters like this? Does |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 F# 7 introduced new ways of working with SRTP aliases however I've ran into an issue converting some type contraints.
Below is some code from IcedTask that uses this feature to create the Awaiter/Awaitable structures with SRTP aliases.
In the
FooBuilder
I show what I think are two implementations that should result in the same behavior but they're not.What am I doing wrong here or is this maybe a bug or maybe a refinement needed?
Beta Was this translation helpful? Give feedback.
All reactions