Skip to content

Commit 9e06c20

Browse files
Timur KelmanTimur Kelman
authored andcommitted
add a test
1 parent e65b3fd commit 9e06c20

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Tests/CSharp/MemberTests/MemberTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,6 +4127,30 @@ public void MS(ref string s)
41274127
}");
41284128
}
41294129

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+
41304154
[Fact]
41314155
public async Task TestMissingByRefArgumentWithNoExplicitDefaultValueAsync()
41324156
{

0 commit comments

Comments
 (0)