Skip to content

Commit

Permalink
Fix validation for tagged types (when warning about unused variables …
Browse files Browse the repository at this point in the history
…is turn on) (#204)
  • Loading branch information
niedam committed Apr 14, 2022
1 parent cd03ea9 commit cbd1105
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ final class macroImpl(val c: whitebox.Context) {
else List.empty
val body =
if (hasValidations)
q"validate($argName).map(arg1 => $argName.taggedWith[${tagType.tagName}[..$tagParams]])"
q"validate($argName).map(_ => $argName.taggedWith[${tagType.tagName}[..$tagParams]])"
else
q"$argName.taggedWith[${tagType.tagName}[..$tagParams]]"

Expand Down

0 comments on commit cbd1105

Please sign in to comment.