Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/compiler/parser/to_s_spec.cr
Original file line number Diff line number Diff line change
@@ -86,4 +86,5 @@ describe "ASTNode#to_s" do
expect_to_s "macro foo\n\\{{ @type }}\nend"
expect_to_s "macro foo\n{% @type %}\nend"
expect_to_s "macro foo\n\\{%@type %}\nend"
expect_to_s "enum A : B\nend"
end
2 changes: 1 addition & 1 deletion src/compiler/crystal/syntax/to_s.cr
Original file line number Diff line number Diff line change
@@ -1170,7 +1170,7 @@ module Crystal
@str << " "
@str << node.name.to_s
if base_type = node.base_type
@str << " < "
@str << " : "
base_type.accept self
end
newline

0 comments on commit eae4ce3

Please sign in to comment.