dotnet/roslyn

IntelliSense complaining about not being able to find a type at assignment to "var"

Open

#11,084 建立於 2016年5月5日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C# (4,257 fork)batch import
Area-CompilersBugConcept-Diagnostic Clarityhelp wanted

倉庫指標

Star
 (20,414 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 256 個 PR)

描述

Not sure if this by design, but it feels wrong - there's nothing I can do resolve this at the callsite:

image

The real problem is the declaration:

image

I can get together a repro (it's convoluted), but just wanted to confirm if this by design or not.

貢獻者指南