Sub M(Optional a As String = "a", ByRef Optional b As String = "b")
Dim s As String = ""
M() 'omitted implicitely
M(,) 'omitted explicitely
M(s) 'omitted implicitely
M(s,) 'omitted explicitely
M(a:=s) 'omitted implicitely
M(a:=s, ) 'omitted explicitely
End Sub
VB.Net input code
Erroneous output
Expected output
Details