Feedback
Improve diagnostic when indexing Nothing
- Status
- Fixed
- Fixed in
- v26.6.6
- Source discussion
- https://forum.objo.dev/d/430-misleading-error-message-and-docs-suggestion-for-enumerations/2
- Last updated
- 2026-06-25
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Indexing a value whose runtime value is Nothing should report a direct diagnostic, such as Cannot index Nothing., instead of the generic indexability message. This makes uninitialised shared properties such as Shared Property _charInfoTable As MemoryBlock easier to diagnose when code later evaluates _charInfoTable[index] before assigning a New MemoryBlock(...).