Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Dec 7, 2023
1 parent e17e43c commit 308a7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/macros/methods.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2768,7 +2768,7 @@ private def parse_generic_args_argument(node, method, named_args, *, default)
case named_arg = named_args.try &.["generic_args"]?
when Nil
default
when BoolLiteral
when Crystal::BoolLiteral
named_arg.value
else
named_arg.raise "named argument 'generic_args' to #{node.class_desc}##{method} must be a BoolLiteral, not #{named_arg.class_desc}"
Expand Down

0 comments on commit 308a7a6

Please sign in to comment.