[perl #118865] Parameter '' requires an instance, LTA error

2015-03-11 Thread Christian Bartolomaeus via RT
The error message has changed slightly and now states that "Invocant requires an instance". $ perl6 -e 'sub f(Int $x where $x > 0) { say "yup" }; my Int $a; f($a);' Invocant requires an instance, but a type object was passed in method Bridge at src/gen/m-CORE.setting:5578 in sub infix:<>> at

Re: [perl #124027] Undeclared name error doesn't include filename, similar errors do

2015-03-11 Thread drforr
On 2015-03-09 21:57, Tobias Leich via RT wrote: What I did not spot earlier was that the filename is shown: ===SORRY!=== Error while compiling /home/jgoff/Documents/cluj_20150305.js/test/polar.t Undeclared name: UndeclaredClass used at line 5 It is there in the first line after the SORRY.

[perl #122980] [BUG] LTA error message on fairly strange input, complaining about the lack of a semicolon when the semicolon's right there in Rakudo

2015-03-11 Thread Christian Bartolomaeus via RT
Rakudo no longer complains about a missing semicolon, but fails with X::Syntax::Confused. The error message differs from what STD complained about, though: $ perl6 -e 'Int:erator:$;' ===SORRY!=== Error while compiling -e Confused at -e:1 --> Int:erator:$⏏; expecting any of: colon

[perl #115608] [BUG] Cannot call a routine using 'foo' syntax when a module 'foo' is declared in Rakudo

2015-03-11 Thread Christian Bartolomaeus via RT
There are no error messages anymore: $ perl6 -e 'module foo; macro foo() { }; foo; foo();' $ perl6 -e 'module foo; sub foo() { say "OH HAI" }; foo; foo()' As I understand it, both 'foo' and 'foo()' are invoking the class. (It is possible to call the sub with '&foo()', though.) $ perl6 -e 'mod

[perl #116178] [BUG] default-assignment (//-) doesn't mix with implicit-variable method call in Rakudo

2015-03-11 Thread Christian Bartolomaeus via RT
The error messages are gone but still the implicit-variable method calls don't work: $ perl6 -e 'my @a = ; my %h; %h{.value} //= .key for @a.pairs; say %h' a => (Any), b => (Any), c => (Any) $ perl6 -e 'my $x //= .uc for "a"; say $x' For this second example I added a test (fudged 'todo') to S0

[perl #124043] Debugging dies for certain script

2015-03-11 Thread via RT
# New Ticket Created by WFB # Please include the string: [perl #124043] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124043 > Hi, I always get an unhandled exception stacktrace if I try to debug a perl6 script. With Hello W

[perl #120397] [BUG] Null PMC access (Parrot) and segfault (JVM) when assigning to a variable "declared" in a subsignature in a variable declaration in Rakudo

2015-03-11 Thread Christian Bartolomaeus via RT
I added a test to S04-declarations/my.t with commit https://github.com/perl6/roast/commit/25f2964446 It only tests that there is no NullPointerException (or no segfault which would abort the test) -- everything else passes. I'm closing this ticket as 'resolved'.