forked from M-Labs/artiq
compiler: Do not expand strings into TInt(8)s in array()
This commit is contained in:
parent
778f2cf905
commit
daf57969b2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user