Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Another bit for nibble_to_str.
As PerlJam++ noticed, 'circumfix<< {some-constant} >>' should probably work.
  • Loading branch information
peschwa committed Oct 8, 2015
1 parent 08d854c commit f91d8ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Perl6/World.nqp
Expand Up @@ -2462,7 +2462,7 @@ class Perl6::World is HLL::World {
while nqp::istype($inspect, QAST::Op) {
$inspect := $inspect[0];
}
if nqp::istype($inspect, QAST::WVal) {
if nqp::istype($inspect, QAST::WVal) && !nqp::istype($inspect.value, self.find_symbol(["Block"])) {
$/.CURSOR.panic($mkerr());
}
else {
Expand All @@ -2480,6 +2480,10 @@ class Perl6::World is HLL::World {
$/.CURSOR.panic($mkerr());
}
return $result;
CONTROL {
# we might get a warning from evaluating a Block
$/.CURSOR.panic($mkerr());
}
CATCH {
$/.CURSOR.panic($mkerr());
}
Expand Down

0 comments on commit f91d8ee

Please sign in to comment.