Commit e98b341f authored by Tom Niget's avatar Tom Niget

Fix bound method optional index

parent bfa48484
......@@ -279,7 +279,7 @@ class FunctionType(TypeOperator):
def remove_self(self):
res = FunctionType(self.parameters[1:], self.return_type)
res.variadic = self.variadic
res.optional_at = self.optional_at
res.optional_at = self.optional_at - 1 if self.optional_at is not None else None
return res
......
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