Skip to content

Commit

Permalink
Fix #48
Browse files Browse the repository at this point in the history
  • Loading branch information
BlobCodes authored and hugopl committed Jul 18, 2023
1 parent 22358e7 commit 2aaf8bd
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 @@ -223,6 +223,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 2aaf8bd

Please sign in to comment.