Feedback
Empty dictionary literal rejected for typed Dictionary
- Status
- Fixed
- Fixed in
- v26.5.7
- Source discussion
- https://forum.objo.dev/d/169-documentation-error-dictionary
- Last updated
- 2026-05-29
Public summary
Empty dictionary literals such as Var empty As Dictionary(Of String, String) = {} are documented as valid, but the compiler rejects them because {} is typed as an unparameterised Dictionary. This blocks users from creating an initially empty typed dictionary while preserving key/value type checking.