Closed p6rt closed 15 years ago
$ ./perl6 -e 'class A { has $.a is rw; method add (A $b) { $.a ~ $b.a } } multi sub infix:\<+> (A $a, A $b) { $a.add($b) }; my A $a .= new(a=>"foo"); my A $b .= new(a=>"bar"); say $a.a ~ $b.a; say $a + $b' foobar Null PMC access in find_method()
Now fixed in f351f60:
$ cat x class A { has $.a is rw; method add(A $b) { $.a ~ $b.a } }
multi sub infix:\<+>(A $a, A $b) { $a.add($b) };
my A $a .= new(a=>'foo'); my A $b .= new(a=>'bar');
say $a.a ~ $b.a; say $a + $b; $ ./perl6 x foobar foobar $
Assigning to moritz++ so that we can get a spectest for infix:\<+> overloading.
Thanks!
Pm
The RT System itself - Status changed from 'new' to 'open'
Now tested in t/spec/S06-operator-overloading/sub.t.
Cheers, Moritz
@moritz - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#68664 (status was 'resolved')
Searchable as RT68664$