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
1 changed files with 2 additions and 0 deletions

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