Input code
Friend Function ItemExist(ByVal user As User) As Boolean
Dim UserLogout As User
For Each UserLogout In innerlist
Next
Return False
End Function
Erroneous output
internal bool ItemExist(User user)
{
User UserLogout;
foreach (var UserLogout in InnerList)
{
}
return false;
}
Expected output
internal bool ItemExist(User user)
{
foreach (User UserLogout in InnerList)
{
}
return false;
}
Details
- Product in use: extension
- Version in use: 8.0.4
In case if User type can't be determined the UserLogout variable should be specified as var and excessive variable declaration to be removed.
Input code
Erroneous output
Expected output
Details
In case if
Usertype can't be determined theUserLogoutvariable should be specified asvarand excessive variable declaration to be removed.