Skip to content

TP0002

Error: dedent doesn’t match any outer indentation level

From the golden case tests/cases/m1/tp0002_bad_dedent.tpn:

tp0002_bad_dedent.tpn
if True:
pass
pass

The compiler reports:

tp0002_bad_dedent.tpn:3:3: error TP0002: dedent does not match any outer indentation level

The specification lists every code.