❔ Optional parameter throwing error
I have a method
On calling this method like
It throws the error like screenshot error message. I don't want to send the optional parameter while passing since i believe it should take what i have specified in the method.
5 Replies
$codegif
I'd just work around it by overloading the method instead of using an optional parameter tbh
No idea why the error happens, though
The interface needs the default value if it doesn't afaik
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.