dotnet / dotnet/vblang

Named parameters and ParamArray do not not play nice together

Open
#597 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

I'm creating an extension method with 3 parameters, the last being a paramaray. When attempting to reorder the parameters using named parameters, the signature is unable to be matched.

```vb.net
Public Module MainModule
Sub Main()
Dim b = "".Example("param1", i:=5)
End Sub


Public Function Example(s As String, i As Integer, ParamArray p As String()) As Boolean
Return False
End Function
End Module
```

This gets two errors, BC30512 and BC36584.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.