mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
better error message for unexpected callable
--HG-- branch : 0.8-dev
This commit is contained in:
parent
440df36859
commit
5d7cf830d7
@ -655,7 +655,8 @@ class _AnalyzeVisitor(ast.NodeVisitor, _ConversionMixin):
|
||||
elif type(f) is MethodType:
|
||||
self.raiseError(node,_error.NotSupported, "method call: '%s'" % f.__name__)
|
||||
else:
|
||||
raise AssertionError("Unexpected callable")
|
||||
debug_info = [e for e in ast.iter_fields(node.func)]
|
||||
raise AssertionError("Unexpected callable %s" % str(debug_info))
|
||||
if argsAreInputs:
|
||||
for arg in node.args:
|
||||
self.visit(arg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user