Skip to content
Snippets Groups Projects
Commit be1a72b5 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Improve sized-complex error message

parent d1556b96
No related branches found
No related tags found
No related merge requests found
...@@ -232,7 +232,8 @@ class TypeInferenceMapper(CombineMapper): ...@@ -232,7 +232,8 @@ class TypeInferenceMapper(CombineMapper):
# Codegen for complex types depends on exactly correct types. # Codegen for complex types depends on exactly correct types.
# Refuse temptation to guess. # Refuse temptation to guess.
raise TypeInferenceFailure("Complex constant '%s' needs to " raise TypeInferenceFailure("Complex constant '%s' needs to "
"be sized for type inference " % expr) "be sized (i.e. as numpy.complex64/128) for type inference "
% expr)
else: else:
raise TypeInferenceFailure("Cannot deduce type of constant '%s'" % expr) raise TypeInferenceFailure("Cannot deduce type of constant '%s'" % expr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment