-
Notifications
You must be signed in to change notification settings - Fork 233
VB -> C#: wrong result for empty char comparisation #892
Copy link
Copy link
Open
Labels
Good for coding agentCoding agent might get it in one - small change with reproCoding agent might get it in one - small change with reproVB -> C#Specific to VB -> C# conversionSpecific to VB -> C# conversionoutput logic errorA bug where the converted output behaves differently to the input codeA bug where the converted output behaves differently to the input code
Description
VB.Net input code
Dim testChar As Char = Nothing
Dim testResult = testChar = ""
Assert.That(testResult, "comparing null character with empty string should be true")Erroneous output
bool testResult = Conversions.ToString(testChar) == ""; Expected output
bool testResult = testChar == char.MinValue;Details
- Product in use: VS extension
- Version in use: 9.0.0.0
- Did you see it working in a previous version, which? no
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good for coding agentCoding agent might get it in one - small change with reproCoding agent might get it in one - small change with reproVB -> C#Specific to VB -> C# conversionSpecific to VB -> C# conversionoutput logic errorA bug where the converted output behaves differently to the input codeA bug where the converted output behaves differently to the input code