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
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.
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
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
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
# 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
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'.