We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74e0fbd commit 442559dCopy full SHA for 442559d
2 files changed
Tests/CSharp/ExpressionTests/ByRefTests.cs
@@ -474,7 +474,7 @@ private int ExplicitFunc([Optional, DefaultParameterValue("""")] ref string str)
474
return 5;
475
}
476
477
- int IFoo.ExplicitFunc(ref string str) => ExplicitFunc(ref str);
+ int IFoo.ExplicitFunc([Optional, DefaultParameterValue("""")] ref string str) => ExplicitFunc(ref str);
478
}");
479
480
Tests/CSharp/MemberTests/PropertyMemberTests.cs
@@ -525,8 +525,8 @@ internal void set_Prop2(int x = 1, int y = 2, int value = default)
525
{
526
527
528
- int IFoo.get_Prop(int x, int y) => get_Prop2(x, y);
529
- void IFoo.set_Prop(int x, int y, int value) => set_Prop2(x, y, value);
+ int IFoo.get_Prop(int x = 1, int y = 2) => get_Prop2(x, y);
+ void IFoo.set_Prop(int x = 1, int y = 2, int value = default) => set_Prop2(x, y, value);
530
531
public void TestGet()
532
@@ -615,8 +615,8 @@ internal void set_Prop2(int x = 1, int y = 2, int z = 3, int value = default)
615
616
617
618
- int IFoo.get_Prop(int x, int y, int z) => get_Prop2(x, y, z);
619
- void IFoo.set_Prop(int x, int y, int z, int value) => set_Prop2(x, y, z, value);
+ int IFoo.get_Prop(int x = 1, int y = 2, int z = 3) => get_Prop2(x, y, z);
+ void IFoo.set_Prop(int x = 1, int y = 2, int z = 3, int value = default) => set_Prop2(x, y, z, value);
620
621
622
0 commit comments