Allow us to erase the Set parameter type
- Dominant language
- No language data
- Stars
- 328
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
In This code:
```
Private _prop1 As String
Public Property Prop1() As String
Get
Return _prop1
End Get
Set(value)
_prop1 = value
End Set
End Property
End Class
```
I erased ```As String``` from the Set block. VB treats the Value param as if it is an object, so It gives a syntax error:
> Error BC31064 'Set' parameter must have the same type as the containing property.
I suggest to infer the Value param from the type of the property to be a string. There is will not break any thing. It is nice not to add useless syntax. It is obvious that the Set param has the same type of the property.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.