Commit 547102ea authored by Robert Bradshaw's avatar Robert Bradshaw

Type inference comments, enable test.

parent 714f5e86
...@@ -1759,6 +1759,8 @@ class NameNode(AtomicExprNode): ...@@ -1759,6 +1759,8 @@ class NameNode(AtomicExprNode):
self.inferred_type.is_builtin_type): self.inferred_type.is_builtin_type):
# assume that type inference is smarter than the static entry # assume that type inference is smarter than the static entry
type = self.inferred_type type = self.inferred_type
if entry.type != self.inferred_type:
print self.pos, entry.type, self.inferred_type
self.type = type self.type = type
def check_identifier_kind(self): def check_identifier_kind(self):
......
...@@ -253,7 +253,7 @@ def iter_and_in(): ...@@ -253,7 +253,7 @@ def iter_and_in():
print c print c
#@cython.test_fail_if_path_exists('//ForInStatNode') @cython.test_fail_if_path_exists('//ForInStatNode')
def iter_inferred(): def iter_inferred():
""" """
>>> iter_inferred() >>> iter_inferred()
......
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