Feedback
Improve Dictionary construction diagnostics
- Status
- Fixed
- Fixed in
- v26.6.8
- Last updated
- 2026-06-30
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Dictionary construction and assignment mistakes can produce confusing diagnostics. A bare parameterised type expression such as Dictionary(Of Integer, Integer) is reported as a contradictory assignment, generic arguments are stripped from some type mismatch messages, and parser recovery can place the error marker away from the bad assignment. Var d As New Dictionary(Of Integer, String) should also be supported consistently with other As New collection syntax.