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 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 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.