-
Notifications
You must be signed in to change notification settings - Fork 847
Add an implementation of getting symbols for TraitConstraintSln.ILMethSln #6320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Nope, tried lots of different things, I cant seem to trigger |
Ah yes, of course. So for now it's not really important to add that case, though I think the code you have looks correct. If you do want to add one you would have to define a .NET class with an odd operator name like |
|
@dsyme I'll keep this open and try and get a hit on this, what about the other cases: What code/symbols would likely trigger those? If I can find triggers I can add them too... |
|
@7sharp9 These won't get triggered by The other cases are used for solutions to SRTP constraints. The FCS API doesn't currently show or report those solutions |
|
@dsyme By .Net class, do you mean something defined in C#, or just a dll reference? |
C#-defined (i.e. non-F# defined - you can use VB if you're brave) |
|
Hmm C# only has vanilla operators to overload ... |
|
You'll need to use the name like |
|
Even with something like this defined: I cant get the symbol version to be seen from F# anyway: |
|
I think I should just close this, its not like this will even exist in the wild unless VB is different |

As discussed in #6307
@dsyme I added a tentative implementation, Im not entirely sure this is correct, also having trouble getting this to match an Item to test.