Skip to content

Instantly share code, notes, and snippets.

@moritz
Created November 2, 2011 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moritz/1333561 to your computer and use it in GitHub Desktop.
Save moritz/1333561 to your computer and use it in GitHub Desktop.
Strange parse error
On Rakudo Houston-83-g5a22e59, branch check-vars, the following file emits a parse error from inside an eval:
use Test;
eval_dies_ok '$b', '$b is not available in this scope';
eval('
my $d = 1;');
Removing the eval, the eval_dies_ok or the newline before the "my $d" makes the parse error go away.
WTF???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment