Area-CompilersConcept-Diagnostic ClarityInvestigatinghelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
Version Used: VS 2015 U2
Steps to Reproduce:
Write the following erroneous C# statement:
Task.Run(() => { }, TaskCreationOptions.LongRunning);
Expected Behavior:
A reasonable error, probably:
CS1503 Argument 2: cannot convert from 'System.Threading.Tasks.TaskCreationOptions' to 'System.Threading.CancellationToken'
Actual Behavior:
Incorrect error message:
CS1643: Not all code paths return a value in lambda expression of type 'Func'
This is possibly related to #8603.