mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
compiler: Fix inference order issue in multi-dim. subscript
This will be caught by the test for an imminent array quoting fix.
This commit is contained in:
parent
a9dd0a268c
commit
94489f9183
@ -237,6 +237,8 @@ class Inferencer(algorithm.Visitor):
|
||||
self.generic_visit(node)
|
||||
if isinstance(node.slice, ast.Index):
|
||||
if types.is_tuple(node.slice.value.type):
|
||||
if types.is_var(node.value.type):
|
||||
return
|
||||
if not builtins.is_array(node.value.type):
|
||||
diag = diagnostic.Diagnostic(
|
||||
"error",
|
||||
|
Loading…
Reference in New Issue
Block a user