aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/typedef.zc
Commit message (Collapse)AuthorAgeFilesLines
* add c-style typedef and a built-in string aliasGravatar zinc 13 days1-0/+89
typedef T name; binds name to the type record of T, at the top level or in a function (scoped to its block). string is a built-in alias for char*. A type name straight before , or ) in a parameter list is the parameter's name, so fn f(string) still works. The language server shows typedef T name; on hover and highlights typedef as a keyword.