When adding <LangVersion>preview</LangVersion>, these attributes give an error FS0842: This attribute is not valid for use on this language element.
//cc @edgarfgp
Checklist
[ ] Test cases added
[ ] Performance benchmarks added in case of performance changes
[ ] Release notes entry updated:
Please make sure to add an entry with short succinct description of the change as well as link to this pull request to the respective release notes file, if applicable.
Release notes files:
If anything under src/Compiler has been changed, please make sure to make an entry in docs/release-notes/.FSharp.Compiler.Service/<version>.md, where <version> is usually "highest" one, e.g. 42.8.200
If language feature was added (i.e. LanguageFeatures.fsi was changed), please add it to docs/releae-notes/.Language/preview.md
If a change to FSharp.Core was made, please make sure to edit docs/release-notes/.FSharp.Core/<version>.md where version is "highest" one, e.g. 8.0.200.
Information about the release notes entries format can be found in the documentation.
Example:
Description
When adding
<LangVersion>preview</LangVersion>
, these attributes give anerror FS0842: This attribute is not valid for use on this language element
.//cc @edgarfgp
Checklist
[ ] Release notes entry updated: