Skip to content

TP0212

Error: chained comparison not supported

From the golden case tests/cases/m2/tp0212_chained.tpn:

tp0212_chained.tpn
def between(a: int, b: int, c: int) -> bool:
return a < b < c

The compiler reports:

tp0212_chained.tpn:2:18: error TP0212: chained comparison not supported
help: write 'a < b and b < c'

The specification lists every code.