Memoizing statements doesn't work anymore.

Statements now need to be evaluated at least if predefined_names_dict is set.
This commit is contained in:
Dave Halter
2015-06-29 13:32:39 +02:00
parent 6e44f334d8
commit d694ab83a3
2 changed files with 6 additions and 2 deletions

View File

@@ -21,5 +21,8 @@ else:
#! 6 type-error-operation
z = x + y
# However, here we have correct types.
if type(x) == type(y):
if x == y:
z = x + y
else:
#! 6 type-error-operation
z = x + y