pull/64/head
Josselin 6 years ago
parent e4224b4a6a
commit 9648c99dd8
  1. 4
      slither/slithir/convert.py

@ -375,11 +375,9 @@ def propagate_types(ir, node):
using_for = node.function.contract.using_for
if isinstance(ir, OperationWithLValue):
# Force assignment in case of missing previous correct type
if isinstance(ir, Assignment):
ir.lvalue.set_type(ir.rvalue.type)
if not ir.lvalue.type:
if isinstance(ir, Assignment):
pass
ir.lvalue.set_type(ir.rvalue.type)
elif isinstance(ir, Binary):
if BinaryType.return_bool(ir.type):
ir.lvalue.set_type(ElementaryType('bool'))

Loading…
Cancel
Save