Skip to content

Commit

Permalink
Show all type parameters in error messages.
Browse files Browse the repository at this point in the history
Resolves #403
  • Loading branch information
gdotdesign committed Apr 22, 2021
1 parent 7cc7f2a commit 581100c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/type_checkers/types.cr
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module Mint
params =
parameters.map(&.to_pretty.as(String))

if params.size > 1 && params[0].includes?("\n")
if params.size > 1 || params[0].includes?("\n")
"#{name}(\n#{params.join(",\n").indent})"
else
"#{name}(#{params[0]})"
Expand Down

0 comments on commit 581100c

Please sign in to comment.