dotnet / dotnet/vblang

[Proposal] Allow using New in Function declaration

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

Description

Suppose we have this function:
```VB.NET
Function Foo() As List(Of Integer)
Foo = New List(Of Integer)
Foo.Add(1)
Foo.Add(2)
End Function
```

I suggest to allow use `New` in the declaration (as in properties), like this:
```VB.NET
Function Foo() As New List(Of Integer)
Foo.Add(1)
Foo.Add(2)
End Function
```

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.