VB -> C#: Invalid call to Conversions.ToInteger for nullable types #865
Labels
output logic error
A bug where the converted output behaves differently to the input code
VB -> C#
Specific to VB -> C# conversion
Called Test method with Nothing/null:
VB.Net input code
Erroneous output
Conversions.ToInteger(a)
will return0
which corresponds toTestEnum.None
.Expected output
Should throw InvalidOperationException.
Details
Probably all nullables are affected.
Possibly the fix in #862 should include strings and fractionals for Conversion.ToInteger. Need to investigate how weird VB is in this aspect.
The text was updated successfully, but these errors were encountered: