dotnet/roslyn
Poor error message when calling a member of a newly constructed object in VB
Aberta
#38.308 aberto em 27 de ago. de 2019
Area-CompilersBugConcept-Diagnostic ClarityLanguage-VBhelp wanted
Métricas do repositório
- Stars
- (20.414 estrelas)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)
Description
Version Used: master Steps to Reproduce:
compile the following code:
Public Module Program
Public Sub Main()
New string("").Clone()
End Sub
End Module
Expected Behavior:
A useful error message, explaining that you need to use Call New string("").Clone()
Actual Behavior:
error BC30035: Syntax error.