Skip to content

Commit

Permalink
Fix hugopl#48
Browse files Browse the repository at this point in the history
  • Loading branch information
BlobCodes committed Jun 26, 2022
1 parent 2cd8408 commit cbd8ecc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generator/helpers.cr
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ module Generator::Helpers
io << to_crystal_type(arg_type_info, include_namespace: true) << nullmark << ','
end
io << to_crystal_type(info.return_type, include_namespace: true)
io << '?' if info.may_return_null?
end

def to_crystal_type(tag : TypeTag) : String
Expand Down

0 comments on commit cbd8ecc

Please sign in to comment.