Skip to content
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

Support ValueOption + Struct attribute as optional parameter #18098

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

vzarytovskii
Copy link
Member

@vzarytovskii vzarytovskii commented Dec 2, 2024

Description

Implements fsharp/fslang-suggestions#1136 - (fsharp/fslang-suggestions#1136 (comment))

Checklist

  • Test cases added

I'm not 100% happy with working with attributes as synattributes (though can live with it), though we do it in the graph checking already, but alternative would be abstract option in the compiler and then make a decision during codegen. This will complicate overall checking quite a bit.

@vzarytovskii vzarytovskii requested a review from a team as a code owner December 2, 2024 15:38
Copy link
Contributor

github-actions bot commented Dec 2, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/FSharp.Core docs/release-notes/.FSharp.Core/9.0.200.md
LanguageFeatures.fsi docs/release-notes/.Language/preview.md

@vzarytovskii
Copy link
Member Author

@T-Gro @KevinRansom @0101 this is ready

@vzarytovskii vzarytovskii requested a review from Copilot December 6, 2024 11:16

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 13 out of 30 changed files in this pull request and generated no suggestions.

Files not reviewed (17)
  • src/Compiler/Checking/CheckDeclarations.fs: Language not supported
  • src/Compiler/Checking/CheckPatterns.fs: Language not supported
  • src/Compiler/Checking/MethodCalls.fs: Language not supported
  • src/Compiler/FSComp.txt: Language not supported
  • src/Compiler/Facilities/LanguageFeatures.fs: Language not supported
  • src/Compiler/Facilities/LanguageFeatures.fsi: Language not supported
  • src/Compiler/TypedTree/TypedTreeOps.fs: Language not supported
  • src/Compiler/TypedTree/TypedTreeOps.fsi: Language not supported
  • src/Compiler/xlf/FSComp.txt.cs.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.de.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.es.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.fr.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.it.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.ja.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.ko.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.pl.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.pt-BR.xlf: Language not supported
@vzarytovskii
Copy link
Member Author

@T-Gro I think I have addressed everything. If tests are passing, this is ready. Lemme know if I forgot anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

4 participants