GetTypeInfo returns with nullability but the ITypeSymbol.NullableAnnotation is None #40051
Labels
Area-Compilers
Bug
Concept-API
This issue involves adding, removing, clarification, or modification of an API.
Feature - Nullable Reference Types
Nullable Reference Types
Feature - Nullable Semantic Model
Nullable Semantic Model Issues
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 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 flow state of Annotated. If I debug into the implementation, it looks like this might just be missing the call to wrap the type.
The text was updated successfully, but these errors were encountered: