We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e65b3fd commit 9e06c20Copy full SHA for 9e06c20
1 file changed
Tests/CSharp/MemberTests/MemberTests.cs
@@ -4127,6 +4127,30 @@ public void MS(ref string s)
4127
}");
4128
}
4129
4130
+ [Fact]
4131
+ public async Task TestRefFunctionCallNoParenthesesArgumentAsync()
4132
+ {
4133
+ await TestConversionVisualBasicToCSharpAsync(
4134
+ @"Class RefFunctionCallArgument
4135
+ Sub S(ByRef o As Object)
4136
+ S(GetI)
4137
+ End Sub
4138
+ Function GetI() As Integer : End Function
4139
+End Class", @"
4140
+internal partial class RefFunctionCallArgument
4141
+{
4142
+ public void S(ref object o)
4143
4144
+ object argo = GetI();
4145
+ S(ref argo);
4146
+ }
4147
+ public int GetI()
4148
4149
+ return default;
4150
4151
+}");
4152
4153
+
4154
[Fact]
4155
public async Task TestMissingByRefArgumentWithNoExplicitDefaultValueAsync()
4156
{
0 commit comments