Repository navigation
Conversation
|
@dsyme @KevinRansom So, the one test that is failing has a specific case against this scenario. I've copied the relevant code below. I'm confused as to the benefit of allowing a function like |
|
@liboz I don't believe there's a specific reason to disallow this. In theory allowing it may be a breaking change, as it allows more general types to be inferred in some situations. Normally this is not a problem but perhaps the value restriction can some into play, I'm not sure. So I'm in favor of adding this early in the F# 4.2 cycle and letting it settle. Could you also please add tests for when the Union type is a struct, and for quotations of expressions involving |
|
@brettfo Is that pull request related to this? |
|
No, and I offer my sincerest apologies. I'm an idiot and linked the wrong issue to the PR. Sorry about that 😄 |
|
@liboz We should write an RFC for this - would you like to contribute that? thanks |
|
@dsyme Created it here: fsharp/fslang-design#220 |
* No triggered completion on operators * Check with classification data instead of stupid custom stuff * Fix silly tests * Feedback
|
@dsyme ... can you take a look at this PR please? |
|
@dsyme any chance you will take a look at this? |
|
@liboz Can you rebase and retarget this PR to |
|
@brettfo I did as you suggested. Can you reopen the PR? |
|
@liboz the dev15.6 branch is deleted, which disallows us from re-opening it. Once you retarget to the master branch then it can be re-opened. |
|
@cartermp Should I open a new PR to do that? |
|
Yes, you can either do that or rebase and retarget this one. Either should work. |
|
This was closed and the label removed for F# 4.5, without merge, is it dismissed or superseded? It is still linked from F# design suggestions, wondering if an update to the RFC is needed and/or re-linked to the superseding issue and/or closed if this wasn't pursued, see https://github.com/fsharp/fslang-design/blob/master/FSharp-4.5/FS-1037-subsumption-for-union-constructors.md |
|
@abelbraaksma The RFC is updated. |
fixes fsharp/fsharp#660
RFC https://github.com/fsharp/fslang-design/blob/master/RFCs/FS-1037-allow-union-constructors-to-deal-with-flexible-types.md