On Fri Dec 05 14:29:52 2008, masak wrote:
> $ cat nasty-bug
> use Test;
> 
> class B {}
> ok(eval('class B {}'));
> 
> $ md5 Test.pm
> MD5 (Test.pm) = a53345a042f07d942f239830773cea54
> 
> $ perl6 nasty-bug
> Null PMC access in type()
> current instr.: '_block11' pc 53 (EVAL_12:19)

As of r36096 this prints:

not ok 1 -
# Looks like you planned  tests, but ran 1
# Looks like you failed 1 tests of 1

Since the type re-declaration is caught at compile time of the eval. In
fact, $! contains a message about the re-declaration of type B.

Thanks!

Jonathan

Reply via email to