Skip to content
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

RBI::File's printer doesn't print root node comments when no other nodes are present #84

Closed
mutecipher opened this issue Oct 5, 2021 · 0 comments · Fixed by #85
Closed
Assignees
Labels
bug Something isn't working

Comments

@mutecipher
Copy link
Contributor

Current behaviour:

rbi = RBI::File.new(strictness: "true")
rbi.root.comments << RBI::Comment.new("foo")
rbi.string
# "# typed: true\n"

Expected behaviour:

rbi = RBI::File.new(strictness: "true")
rbi.root.comments << RBI::Comment.new("foo")
rbi.string
# "# typed: true\n\n# foo\n"
@mutecipher mutecipher added the bug Something isn't working label Oct 5, 2021
Morriar added a commit that referenced this issue Oct 5, 2021
Fixes #84.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar self-assigned this Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants