We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using .fs and .fsi files, the conformance for generic type parameters and their nullness annotations is not checked.
null
not null
Windows (Default)
.NET SDK (.NET Core, .NET 5+)
NET9
Signature file
[<Class>] type GenericContainer<'T when 'T:not null and 'T:not struct> = member GetNull : unit -> ('T|null) member GetNotNull: unit -> 'T
Impl file:
type GenericContainer<'T when 'T:not null and 'T:not struct>(x:'T) = let innerVal = x member _.GetNull() : ('T) = x member _.GetNotNull() : ('T|null) = null
Do not use .fsi files.
The text was updated successfully, but these errors were encountered:
T-Gro
Successfully merging a pull request may close this issue.
Issue description
When using .fs and .fsi files, the conformance for generic type parameters and their nullness annotations is not checked.
Choose one or more from the following categories of impact
null
constructs in code not using the checknulls switch.null
,not null
).Operating System
Windows (Default)
What .NET runtime/SDK kind are you seeing the issue on
.NET SDK (.NET Core, .NET 5+)
.NET Runtime/SDK version
NET9
Reproducible code snippet and actual behavior
Signature file
Impl file:
Possible workarounds
Do not use .fsi files.
The text was updated successfully, but these errors were encountered: