forked from M-Labs/artiq
1
0
Fork 0

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 break
if types.is_var(elt): if types.is_var(elt):
return # undetermined yet return # undetermined yet
if not builtins.is_iterable(elt): if not builtins.is_iterable(elt) or builtins.is_str(elt):
break break
num_dims += 1 num_dims += 1
elt = builtins.get_iterable_elt(elt) elt = builtins.get_iterable_elt(elt)