BC36629: Nullable type inference is not supported in this context
Value types and structures can be declared nullable.
Dim a? As Integer
Dim b As Integer?
However, you cannot use the nullable declaration in combination with type inference. The following examples cause this error.
' Not valid.
' Dim c? = 10
' Dim d? = a
Error ID: BC36629
To correct this error
- Use an
As
clause to declare the variable as a nullable value type.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for