dotnet/roslyn
Poor error message when calling a member of a newly constructed object in VB
オープン
#38,308 opened on 2019/08/27
Area-CompilersBugConcept-Diagnostic ClarityLanguage-VBhelp wanted
Repository metrics
- Stars
- (20,414 個のスター)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
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.