The problem only appears if `m//` is used directly as the RHS of `~~`:
$_ = 'a' | 'b';
say m/a/; # any(「a」, Nil)
say $_ ~~ m/a/; # False
say $_ ~~ { m/a/ }; # any(「a」, Nil)The problem only appears if `m//` is used directly as the RHS of `~~`:
$_ = 'a' | 'b';
say m/a/; # any(「a」, Nil)
say $_ ~~ m/a/; # False
say $_ ~~ { m/a/ }; # any(「a」, Nil)