-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignoring overloads after the first in method comments #36
Comments
The syntax accepts only one overload. So, having another overload after the |
Is this the current way to write overloads? #:: (String) -> String
#:: (Integer) -> Integer Perhaps OP’s expectation is more explicit? #:: (String) -> String
# | (Integer) -> Integer |
Hmm... |
Oh, thank you very much. It seems to work as expected with the following.
I also found the following on the Wiki:
My issue was not so much a syntax problem, but rather that I felt rbs-inline could not express overloads. I will close this issue now that I know I was mistaken. Thank you for your comments! |
Description
When using
#::
comments to express method overloads, everything after the first|
is ignored.Steps to Reproduce
Run
rbs-inline
on the following program:Expected Result
The following should be generated:
Actual Result
Everything after the first | is ignored, resulting in:
Environment
The text was updated successfully, but these errors were encountered: