Moritz (>), Carl (>>):
>> Rakudo r31994 can call methods on classes without :: in them, but not
>> on classes having them.
>>
>> $ perl6 -e 'class A { method foo { say "OH HAI" } }; A.new.foo'
>> OH HAI
>>
>> $ perl6 -e 'class A::B { method foo { say "OH HAI" } }; A::B.new.foo'
>> Method 'foo' not found for invocant of class 'A;B'
>> [...]
>
> We clearly need more OO tests. Care to add that one (as TODO) to one of
> the S12 tests that is included in `make spectest`?

I added the new test file t/spec/S12-class/namespaced.t -- feel free
to merge it (and its single test) into another test file. I'm not sure
I got the TODO fudging right.

Reply via email to