# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #126835] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126835 >
class C{}; my $sig1 = (my method (C: Int) {}).signature; my $sig2 = (my method (C: Int) {}).signature; say so $sig1 ~~ $sig2; # OUTPUT«False» # I would expect True for a smartmatch of copypasta signatures class C{}; my $sig1 = (my method (C: Int) {}).signature; my $sig2 := $sig1; say so $sig1 ~~ $sig2; # OUTPUT«False» # The same signature bound to two variables is equil to itself. So the problem seams to be with ~~ class C{}; my $sig1 = (my method (C: Int) {}).signature; my $sig2 := $sig1; say so $sig1 === $sig2; # OUTPUT«True»