forked from M-Labs/artiq
Fix type of Call.
This commit is contained in:
parent
8c5e58f83c
commit
3adb4150f4
|
@ -788,6 +788,9 @@ class Inferencer(algorithm.Visitor):
|
||||||
self.engine.process(diag)
|
self.engine.process(diag)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self._unify(node.type, typ.ret,
|
||||||
|
node.loc, None)
|
||||||
|
|
||||||
def visit_LambdaT(self, node):
|
def visit_LambdaT(self, node):
|
||||||
self.generic_visit(node)
|
self.generic_visit(node)
|
||||||
signature_type = self._type_from_arguments(node.args, node.body.type)
|
signature_type = self._type_from_arguments(node.args, node.body.type)
|
||||||
|
|
|
@ -9,4 +9,5 @@ def _gcd(a, b):
|
||||||
b = c
|
b = c
|
||||||
return b
|
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)
|
_gcd(10, 25)
|
||||||
|
|
Loading…
Reference in New Issue