mirror of https://github.com/m-labs/artiq.git
transforms.inferencer: don't crash on partially-inferred binary expressions.
This commit is contained in:
parent
6938036b28
commit
5dcf936f4e
|
@ -348,6 +348,10 @@ class Inferencer(algorithm.Visitor):
|
||||||
pred, kind = builtins.is_list, "list"
|
pred, kind = builtins.is_list, "list"
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
if types.is_var(other.type):
|
||||||
|
return
|
||||||
|
|
||||||
if not pred(other.type):
|
if not pred(other.type):
|
||||||
printer = types.TypePrinter()
|
printer = types.TypePrinter()
|
||||||
note1 = diagnostic.Diagnostic("note",
|
note1 = diagnostic.Diagnostic("note",
|
||||||
|
|
Loading…
Reference in New Issue