Xo is experimental. The source code is not public yet; it will be soon. Read the release notes
Menu · XO0156

Docs

XO0156: `${` without a matching `}` in the same string

error · reported by the lexer

Inside a string, ${ starts an interpolated expression that must be closed by } before the string ends. If a literal ${ is meant, escape the dollar sign: \${. A $ not followed by { is always literal. See core 1.6.

Example

fn f(b: Int) -> Str {
  "a ${b"
}

Fix

fn f(b: Int) -> Str {
  "a ${b}"
}

Run xo explain XO0156 for this text in a terminal, or see section 10.6 of the specification.