Pretty contrived examples pulled from mechanically reduced code (was reducing another bug).
// Warning: use '{ }' for an empty statement, not a ';'
static tokenText = { ; };
// Error: cannot infer type from struct initializer
static tokenText = { {} };
// Warning: use '{ }' for an empty statement, not a ';'
static tokenText = { {}; };
Perhaps another warning for missing '()' would be better here, as it seems pretty dubious to infer {;} as a lambda.
Comment #1 by robert.schadek — 2024-12-13T18:51:31Z