Improve support of user-defined function type (close #136)

pull/132/head
Josselin 6 years ago
parent 3db412a7d5
commit 983677205f
  1. 2
      slither/solc_parsing/expressions/expression_parsing.py

@ -551,6 +551,8 @@ def parse_expression(expression, caller_context):
array_type = parse_type(UnknownType(type_name['name']), caller_context) array_type = parse_type(UnknownType(type_name['name']), caller_context)
else: else:
array_type = parse_type(UnknownType(type_name['attributes']['name']), caller_context) array_type = parse_type(UnknownType(type_name['attributes']['name']), caller_context)
elif type_name[caller_context.get_key()] == 'FunctionTypeName':
array_type = parse_type(type_name, caller_context)
else: else:
logger.error('Incorrect type array {}'.format(type_name)) logger.error('Incorrect type array {}'.format(type_name))
exit(-1) exit(-1)

Loading…
Cancel
Save