Skip to content

TP0100

Error: syntax error: expected X, found Y (including 'yield' needs a value, M31, until M42 allowed a bare yield)

  • '**' must come last in a mapping pattern
  • '**_' can't be used; leave it out
  • a tuple pattern can have only one '*' (M38)

From the golden case tests/cases/m44/tp0100_assert.tpn:

tp0100_assert.tpn
# assert needs a message after its comma (SPEC §5.6).
assert 1 > 0,

The compiler reports:

tp0100_assert.tpn:2:14: error TP0100: expected expression, found newline

The specification lists every code.