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
|
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)
|
||||||
|
|
Loading…
Reference in New Issue