In response to R#2512
$ perl6 -e 'Any ~~ (10 => "ten")'
No such method '10' for invocant of type 'Any'
Did you try to smartmatch against a Pair specifically? If so,
then the key of the Pair should be a valid method name, not '10'