Commit f1bb683f authored by Tom Niget's avatar Tom Niget

Fix bound method optional index

parent 5fc6741f
...@@ -279,7 +279,7 @@ class FunctionType(TypeOperator): ...@@ -279,7 +279,7 @@ class FunctionType(TypeOperator):
def remove_self(self): def remove_self(self):
res = FunctionType(self.parameters[1:], self.return_type) res = FunctionType(self.parameters[1:], self.return_type)
res.variadic = self.variadic 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 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