Closed bratfizyk closed 2 years ago
These experimental attributes should indeed have been removed as part of the F# 6.0 release process.
Why does this warning not occur for 6.0.1?
I don't know, sorry - did you check if the attributes are present in that FSharp.Core?
Hi Don! Thanks for the response.
Why does this warning not occur for 6.0.1?
I don't know, sorry - did you check if the attributes are present in that FSharp.Core?
No problem at all. I've briefly reviewed history and these tags were added in September last year. My best guess is that FSharp.Core 6.0.1 had been created using an earlier version.
Thanks for fixing this. For now I'll add a #nowarn
to my project and once there is a new version of FSharp.Core I'll consider a migration.
Please provide a succinct description of the issue.
Updating
FSharp.Core
from6.0.1
to6.0.2
or6.0.3
generates a warning that doesn't exist in6.0.1
.Provide the steps required to reproduce the problem:
fsproj
file specifyFSharp.Core
version to 6.0.1 (<PackageReference Update="FSharp.Core" Version="6.0.1" />
).Program.fs
add a line:let measureUint = LanguagePrimitives.UInt32WithMeasure<1> 54u
dotnet run
). No warning.FSharp.Core
version to6.0.2
or6.0.3
.dotnet run
) once again. There's a warning:FS0057: Experimental library feature, requires '--langversion:preview'. This warning can be disabled using '--nowarn:57' or '#nowarn "57"'
.Provide any related information:
Windows 10
,Ubuntu 21.10
.NET 5
Visual Studio 2022
,Visual Studio Code
+Ionide
My question:
Why does this warning not occur for
6.0.1
?