Uh oh!
There was an error while loading. Please reload this page.
Fix incomplete pattern matches over C# enums producing the wrong warning - #5206
Conversation
jwosty
commented
Jun 16, 2018
@dotnet-bot test this please |
| | PathEmpty(_), PathEmpty(_) -> true | ||
| | _ -> false | ||
| //// (Temporarily copy-pasted from TypeChecker.fs) |
There was a problem hiding this comment.
I don't know where this function should be refactored to as I'm not very well versed in the compiler's file structure. PatternMatchCompilation.fs comes before TypeChecker.fs, but the former needs this function.
There was a problem hiding this comment.
(just an opinion) You can expose it for use in TypeChecker.fs, and replace the comment akin to "Comes from TypeChecker.fs, might move to more apropriate place later.".
This would be better than having the code duplicated, and unless it becomes used in a third place, the location is not too important.
There was a problem hiding this comment.
@smoothdeveloper I kind of like that idea actually. That way its pretty obvious that not much code depends on it.
jwosty
commented
Jun 20, 2018
@cartermp What is the cause of the CI failure? It reports: |
cartermp
commented
Jun 20, 2018
cc @matthid - sounds like a FAKE issue on CI? |
matthid
commented
Jun 20, 2018
@forki Is this the broken .NET SDK installer problem? Where is the other issue about that? |
forki
commented
Jun 21, 2018
via email
I only know of Twitter discussion. And the urls worked for us again. /cc
@davkean
Matthias Dittrich <notifications@github.com> schrieb am Mi., 20. Juni 2018,
21:56: …@forki <https://github.com/forki> Is this the broken .NET SDK installer
problem? Where is the other issue about that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5206 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNAo-bN_BV37JUiU-mP1B73mDGQkGks5t-qkHgaJpZM4Uqo0M>
.
|
cartermp
commented
Jun 21, 2018
test Ubuntu16.04 Release_fcs Build Windows_NT Release_fcs Build |
cartermp
commented
Jun 21, 2018
test Windows_NT Release_fcs Build |
jwosty
commented
Jun 21, 2018
matthid
commented
Jun 21, 2018
So typical try again until it works error? |
cartermp
commented
Jun 21, 2018
@matthid jawohl! |
jwosty
commented
Jul 2, 2018
There's no more for me to do at the moment. Could this be considered for merge? @dsyme |
KevinRansom
commented
Jul 13, 2018
Thanks for this |
PR #4522 has a bug, causing it to always produce FS0104 for non-F#-defined enum. For example, the following code:
currently produces this compiler warning:
when it is supposed to produce:
This PR corrects the issue.
Thanks to @charlesroddiefor identifying the bug.