diff --git a/lib/prism/lex_compat.rb b/lib/prism/lex_compat.rb index 3a0431841ee25d..70cb0652018239 100644 --- a/lib/prism/lex_compat.rb +++ b/lib/prism/lex_compat.rb @@ -244,7 +244,7 @@ def ==(other) # :nodoc: return false unless self[0...-1] == other[0...-1] if self[3] == Ripper::EXPR_ARG | Ripper::EXPR_LABELED - other[3] & Ripper::EXPR_ARG | Ripper::EXPR_LABELED > 0 + other[3] & Ripper::EXPR_ARG | Ripper::EXPR_LABELED != 0 else self[3] == other[3] end