We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0011f44 commit e2bde4fCopy full SHA for e2bde4f
1 file changed
symbols/typecast.py
@@ -63,6 +63,9 @@ def make_node(cls, new_type, node, lineno):
63
64
# TODO: Create a base scalar type
65
if isinstance(node, SymbolVARARRAY):
66
+ if new_type.size == node.type_.size and TYPE.string not in (new_type, node.type_):
67
+ return node
68
+
69
syntax_error(lineno, "Array {} type does not match parameter type".format(node.name))
70
return None
71
0 commit comments