Commit 869d901a authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Restore previous behavior of get_type_of_expression for untyped symbol

parent 43f6d5de
...@@ -436,8 +436,10 @@ def get_type_of_expression(expr, ...@@ -436,8 +436,10 @@ def get_type_of_expression(expr,
elif isinstance(expr, TypedSymbol): elif isinstance(expr, TypedSymbol):
return expr.dtype return expr.dtype
elif isinstance(expr, sp.Symbol): elif isinstance(expr, sp.Symbol):
return symbol_type_dict[] if symbol_type_dict:
# raise ValueError("All symbols iside this expression have to be typed! ", str(expr)) return symbol_type_dict[]
raise ValueError("All symbols inside this expression have to be typed! ", str(expr))
elif isinstance(expr, cast_func): elif isinstance(expr, cast_func):
return expr.args[1] return expr.args[1]
elif isinstance(expr, (vec_any, vec_all)): elif isinstance(expr, (vec_any, vec_all)):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment