On Wed Jun 09 10:50:59 2010, moritz wrote:
> proto sub a($x) is export { say "in proto"; nextsame }
> sub a(Str $x) { say "Str $x" };
> sub a(Int $x) { say "Int $x" };
>
> a([]);
>
> causes
>
> in proto
> Null PMC access in clone()
> in 'a' at line 1
> in main program body at line 5:Foo.pm
>
> Note that even when the nextsame() dispatch should succeed (in case
the
> proto is exported, and on calls a(3) from a calling module) the same
> error occurs
This now dies with:
$ ./perl6 foo
===SORRY!===
Illegal redeclaration of routine 'a' at line 2, near ";\nsub a(In"
--
Will "Coke" Coleda