Skip to content
Playground(another site)

bynk.lex.legacy_comment

Error A -- line comment, the spelling before #2203; a comment is // (auto-fixable; bynk fmt rewrites it).

A -- no longer starts a comment; a line comment is //. The old spelling is refused rather than reread, so a file written for it never changes meaning: x = 1 -- note is not quietly taken for 1 - -note. The fix is machine-applicable: bynk check --fix applies it and bynk fmt rewrites a whole project. For a real a - -b, write the space.

Example

const Limit: Int = 100 -- the cap // ✗ `--` is the old comment
const Limit: Int = 100 // ✓ a comment is `//`

In the Book

See also

  • Every code in its category, Lexer, on the diagnostic index.
  • bynk explain bynk.lex.legacy_comment shows the same from the installed toolchain, without a network.