Commit e70aa01a authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix substring generation

parent d9e2847a
......@@ -679,7 +679,8 @@ def check_type_compatibility(primary, type_ref, context):
str(basic_type.Min) + '..' + str(basic_type.Max) + ']')
for elem in primary.value:
check_type_compatibility(elem, basic_type.type, context)
if not hasattr(primary, 'expected_type'):
if not hasattr(primary, 'expected_type') \
and type_ref.__name__ not in ('Apnd', 'SubStr'):
primary.expected_type = type_ref
return
elif isinstance(primary, ogAST.PrimSequence) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment