Commit e1cd0021 authored by Tom Niget's avatar Tom Niget

Fix returnless function detection for generators

parent 234ea64e
......@@ -53,6 +53,7 @@ class ScoperExprVisitor(ScoperVisitor):
assert ftype.kind == PromiseKind.TASK
ftype.kind = PromiseKind.GENERATOR
ftype.return_type.unify(ytype)
self.scope.function.has_return = True
return TY_NONE
......
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