2
0
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:
David Nadlinger 2020-10-20 01:28:01 +02:00
parent a9dd0a268c
commit 94489f9183

View File

@ -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",