Public Class ByRefConstArgument
Public Const i As Integer = 0
Public Sub M(ByRef o As Object)
M(i)
End Sub
End Class
Erroneous output
public class ByRefConstArgument
{
public const int i = 0;
public void M(ref object o)
{
object argo = i;
M(ref argo);
ByRefConstArgument.i = Conversions.ToInteger(argo); // can't do this
}
}
Expected output
public class ByRefConstArgument
{
public const int i = 0;
public void M(ref object o)
{
object argo = i;
M(ref argo);
}
}
Details
Product in use: VS extension
Version in use: 95cec96e97ea2c2039864b602432b1557cffb93c
Did you see it working in a previous version, which? No
Any other relevant information to the issue, or your interest in contributing a fix.
VB.Net input code
Erroneous output
Expected output
Details