difftastic/vendor/tree-sitter-hack/test/cases/declarations/const-keyword.hack

30 lines
462 B
Plaintext

// Kinda wish this wasn't allowed. Seems like asking for trouble.
const type = 1;
const newtype = 1;
// 🤦
const int int = 1;
const bool = 1;
const float = 1;
const int = 1;
const string = 1;
const arraykey = 1;
const void = 1;
const nonnull = 1;
const null = 1;
const mixed = 1;
const dynamic = 1;
const noreturn = 1;
const array = 1;
const varray = 1;
const darray = 1;
const vec = 1;
const dict = 1;
const keyset = 1;
const tuple = 1;
const shape = 1;