[perl #75646] [BUG] Null PMC access when typing a variable as ::foo in Rakudo

2016-07-16 Thread Christian Bartolomaeus via RT
The test passes again (rakudo-j). I'm closing this ticket as resolved.


[perl #75646] [BUG] Null PMC access when typing a variable as ::foo in Rakudo

2015-10-31 Thread Will Coleda via RT
On Tue Oct 28 14:41:35 2014, barto...@gmx.de wrote:
> The Null PMC access is gone, so I'm closing this ticket.
> 
> The error message has changed slightly:
> 
> $ perl6-m -e 'my ::foo $x; say $x'
> Cannot type check against type variable foo
>   in any type_check at src/gen/m-Metamodel.nqp:297
>   in block  at -e:1
> 
> I added a test for this exception to S02-names-vars/names.t with
> commit https://github.com/perl6/roast/commit/5e0641d092
> 
> If you don't think current behaviour is correct, please reopen the
> ticket.
> 
> Also, there was another Ticket (#72814; with test in S04-
> declarations/my.t) about the Null PMC access with 'my ::foo $x;'. I'm
> gonna merge both tickets.

This test now dies on the JVM with a java.lang.StackOverflowError

re-opening ticket.
-- 
Will "Coke" Coleda


[perl #75646] [BUG] Null PMC access when typing a variable as ::foo in Rakudo

2014-10-28 Thread Christian Bartolomaeus via RT
The Null PMC access is gone, so I'm closing this ticket.

The error message has changed slightly:

$ perl6-m -e 'my ::foo $x; say $x'
Cannot type check against type variable foo
  in any type_check at src/gen/m-Metamodel.nqp:297
  in block  at -e:1

I added a test for this exception to S02-names-vars/names.t with commit 
https://github.com/perl6/roast/commit/5e0641d092

If you don't think current behaviour is correct, please reopen the ticket.

Also, there was another Ticket (#72814; with test in S04-declarations/my.t) 
about the Null PMC access with 'my ::foo $x;'. I'm gonna merge both tickets.


[perl #75646] [BUG] Null PMC access when typing a variable as ::foo in Rakudo

2011-09-19 Thread Will Coleda via RT
On Wed Jun 09 14:45:50 2010, masak wrote:
>  rakudo: my ::foo $x;
>  rakudo a54677: OUTPUT�Null PMC access in type() [...]
>  masak: You only got a birdie, not a hole in one. :P
>  jnthn: will update the ticket.
>  hee
>  :-)
>  masak: Yeah, I was looking at it thinking "hmm, I know how
> that code works and I'm
> surprised we make it past the declaration" :)

Now they say:

00:19 < [Coke]> rakudo: my ::foo $x; say $x
00:19 <+p6eval> rakudo cbdd9b: OUTPUT«Cannot call a method on type variable 
foo␤  in 
find_method at src/gen/Metamodel.pm:261␤  in sub say at 
src/gen/CORE.setting:4722␤  in sub say at 
src/gen/CORE.setting:4729␤ 
in  at /tmp/ormgC9k2j3:1␤  in  at 
/tmp/ormgC9k2j3:1␤␤»
00:19 < [Coke]> rakudo: my ::foo $x;
00:19 <+p6eval> rakudo cbdd9b:  ( no output )
00:19 < [Coke]> rakudo: my ::foo $x; say "alive"
00:19 <+p6eval> rakudo cbdd9b: OUTPUT«alive␤»


-- 
Will "Coke" Coleda