unconstrained type parameter is null compiles when not targeting C# 8 #35550
Labels
Area-Compilers
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Milestone
Version Used: VS 16.0.3
Steps to Reproduce:
Compile the following program with LangVersion set to 7.3
Expected Behavior: Error: Cannot convert null to type parameter 'T' because it could be a non-nullable value type.
Actual Behavior: Compiles without error.
The text was updated successfully, but these errors were encountered: