vyper Version (output of vyper --version OR linkable commit hash vyperlang/vyper@): vyperlang/vyper@b43fface148b45cbd2c90b5d24f77398a63745b5
Issue Description
In Expr.handle_binop(), the assertion assert is_numeric_type(left.typ) is performed after the handling of
vy_ast.LShift and vy_ast.RShift, which are only defined for numeric
types. The assertion could be moved before the handling of these
operators to be more precise.
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@Issue Description
In
Expr.handle_binop()
, the assertionassert is_numeric_type(left.typ)
is performed after the handling ofvy_ast.LShift
andvy_ast.RShift
, which are only defined for numeric types. The assertion could be moved before the handling of these operators to be more precise.