-
-
Save moritz/1333561 to your computer and use it in GitHub Desktop.
Strange parse error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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