-
Notifications
You must be signed in to change notification settings - Fork 78
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
unique overload for CircularBuffer method 'Enqueue' could not be determined #123
Comments
VS 15.7.4 Everything compiles OK and the tests pass (
|
As discussed on Slack, the problem is revealed in the tests that are commented (because they do not build). |
With @vasily-kirichenko help on the https://functionalprogramming.slack.com/messages/C045LHLTH/ channel we figured out the problem. I'm sure this is an old regression that the compiler no longer takes into account overload ordering, so it cannot tell the difference between |
Work around is to specify type parameter, e.g. |
Not a bug in compiler. Old 2013 was exploiting a prior bug in compiler which has been fixed. |
Description
Second overload works, but attempting to write code for the first overload results in error
Repro steps
See commented tests in CircularBufferTests.fs
The text was updated successfully, but these errors were encountered: