dotnet/roslyn
Poor error message when calling a member of a newly constructed object in VB
開放
#38,308 建立於 2019年8月27日
Area-CompilersBugConcept-Diagnostic ClarityLanguage-VBhelp wanted
倉庫指標
- 星標
- (20,414 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
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.