title: InvalidShiftOperand layout: article

InvalidShiftOperand occurs when the shifted operand is not an integer.

Example:
 var s = "hello"
 var x = s {{raw "<"}}{{raw "<"}} 2