TypeInfo.ConvertedType.NullableAnnotation is None when binding a 'var' keyword #40052
Labels
Area-Compilers
Bug
Feature - Nullable Reference Types
Nullable Reference Types
Feature - Nullable Semantic Model
Nullable Semantic Model Issues
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Milestone
This is being observed in #40030 as I'm removing the IDE's nullable wrappers. If you run this test in the branch it fails. The test is calling GetTypeInfo on the argument and grabbing the ConvertedType here. The old nullability APIs say that it is indeed nullable, but the new ITypeSymbol.NullableAnnotation still says None.
I believe the expectation now is the ITypeSymbol.NullableAnnotation should have brought along the annotated state of Annotated.
The text was updated successfully, but these errors were encountered: