forked from M-Labs/artiq
1
0
Fork 0

Fix type of Call.

This commit is contained in:
whitequark 2015-06-15 17:16:44 +03:00
parent 8c5e58f83c
commit 3adb4150f4
2 changed files with 4 additions and 0 deletions

View File

@ -788,6 +788,9 @@ class Inferencer(algorithm.Visitor):
self.engine.process(diag)
return
self._unify(node.type, typ.ret,
node.loc, None)
def visit_LambdaT(self, node):
self.generic_visit(node)
signature_type = self._type_from_arguments(node.args, node.body.type)

View File

@ -9,4 +9,5 @@ def _gcd(a, b):
b = c
return b
# CHECK-L: _gcd:(a:int(width='a), b:int(width='a))->int(width='a)(10:int(width='a), 25:int(width='a)):int(width='a)
_gcd(10, 25)