New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q:PIR fails as last statement in a block #2523
Comments
From kpolulak@gmail.comI stumbled across a bug where `perl6 --doc` fails to parse the file if it Consider the following code: =begin pod Some text =end pod class Foo; method foobar() { Q:PIR { Running `perl6 --doc` gives a lovely IMCC error: Use of uninitialized value in string context The "unexpected" character can vary sometimes. If I add: self = new $P0 after the call to 'find_lex', I get two "unexpected" characters: error:imcc:syntax error, unexpected '=', expecting '(' ('=') It's only under those conditions though: only with the 'find_lex' opcode and -- |
From @cognominalWhen trying to reduce In rakudo nom 9c3d3d103a52b7fdaa847ae1e001229a6e841ff1 $ cat h.p6 Q:PIR { say 'hi' }; $ perl6 h.p6hi$ perl6 Looking at hi.pir starting line 257, I see that the say 'hi' According to the source in src/ops/perl6.ops it expects an argument -- |
From @moritzThe problem here is that you don't return anything from Q:PIR {} (not The solution is simply to put another statement after it (for example 1;). |
The RT System itself - Status changed from 'new' to 'open' |
From @cokeOn Wed Oct 19 06:29:49 2011, moritz wrote:
Spoke with OP on #perl6 - this workaround is sufficient to close out the ticket. Regards. |
@coke - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#101562 (status was 'resolved')
Searchable as RT101562$
The text was updated successfully, but these errors were encountered: