aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/static_typo.zc
Commit message (Collapse)AuthorAgeFilesLines
* constants inside structs, and typo suggestions for fields and static membersGravatar zinc 14 days1-0/+5
const NAME = e; inside a struct body declares a compile-time constant named Struct.NAME, reached as Struct.NAME or by bare name in the struct's methods. A misspelled field or Struct.name member now ends its error with '; did you mean 'name'?' on the member word, which the language server turns into a quick fix.