-
Notifications
You must be signed in to change notification settings - Fork 832
Allow interfaces to be declared and implemented within intrinsics #11170
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
|
@KevinRansom I don't understand why I'm still getting this error stating that there's a difference in neg46 when I already removed the relevant part from the neg46.bsl |
|
@gusty if you go here (for some reason not working on my mac laptop) and click on fsharpQA logs you can see detailed failures: https://dev.azure.com/dnceng/public/_build/results?buildId=1030986&view=artifacts&pathAsName=false&type=publishedArtifacts |
|
So far here we're removing the limitation. Another PR could adjust the warnings as suggested by @dsyme and remove it completely when the containing module is a rec one. Please consider including this in the next preview as we need this in our projects to separate the business logic (at least in the same file at the top). |
|
Bump @dsyme |
|
@gusty The PR doesn't match what's approved?
|
|
@dsyme as I said, it doesn't remove the warning in the Anyway, I can have another look at it and try to suppress the warning in those cases, last time I checked I was unable to figure out where is that module information available. Any help would be much appreciated. |
|
@gusty The PR doesn't add any tests showing what is now allowed To be clearer, the approved suggestion is
It's ok to just do part (1), since it;s only a warning message. Please also add tests for this as there will be very few or none in the codebase. |
|
@gusty Hi, fine if I take this over ? |
|
@T-Gro Sure, go ahead. It's basically finished, just need to remove the warning in the mentioned case. |
|
@gusty ; @dsyme ; @vzarytovskii Checks passing now, ready to be reviewed. |
gusty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, I can't approve as I'm considered as author. Thanks for taking care of this.
tests/FSharp.Compiler.ComponentTests/ErrorMessages/InterfaceImplInAugmentationsTests.fs
Outdated
Show resolved
Hide resolved
dsyme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of minor nits. Looks great!
I'll mark as "comment" to not block approval - consider it approved besides these minor nits
tests/FSharp.Compiler.ComponentTests/ErrorMessages/InterfaceImplInAugmentationsTests.fs
Outdated
Show resolved
Hide resolved
tests/FSharp.Compiler.ComponentTests/ErrorMessages/InterfaceImplInAugmentationsTests.fs
Outdated
Show resolved
Hide resolved
…plInAugmentationsTests.fs Co-authored-by: Petr Pokorny <[email protected]>
…plInAugmentationsTests.fs Co-authored-by: Petr Pokorny <[email protected]>
|
@T-Gro I merged main into this |
|
@vzarytovskii This could get mentioned in F# 7 release announcement, perhaps also a very brief RFC that the limitation has been lifted. |
This was discussed as part of fsharp/fslang-suggestions#691