Skip to content

ZNTC0601: Unary expression cannot be the left operand of '**'

Unary expression cannot be the left operand of ’**’

Category: Parser: Expression/Operator

const x = -a ** 2;

Reproduce in Playground →

See the error message for cause and resolution.