compiler: Do not expand strings into TInt(8)s in array()

This commit is contained in:
David Nadlinger 2020-08-09 23:34:30 +01:00
parent 778f2cf905
commit daf57969b2
1 changed files with 1 additions and 1 deletions

View File

@ -888,7 +888,7 @@ class Inferencer(algorithm.Visitor):
break
if types.is_var(elt):
return # undetermined yet
if not builtins.is_iterable(elt):
if not builtins.is_iterable(elt) or builtins.is_str(elt):
break
num_dims += 1
elt = builtins.get_iterable_elt(elt)