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
temp on an undeclared dynamic variable produces a not very helpful error #6497
Comments
From @geekosaurSeen in IRC: [05 17:51:12] <Zoffix> m: grammar { token TOP { :my $*v = 42; <foo> }; Apparently it's reacting to the default value being a Failure. Which is (Yes, I recognize this could be tricky.) -- |
From @geekosaurOr maybe it's not that tricky after all; seems the Failure is actually a -- |
From @jnthnOn Tue, 05 Sep 2017 11:02:59 -0700, allbery.b@gmail.com wrote:
Indeed. I added code to check if the thing we were trying to temporize was a Failure and just throw that instead of the more generic error, which improves the error reporting and has no ill effects on the spectest. Also added a test in S04-blocks-and-statements/temp.t to cover the improvement. |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#132035 (status was 'resolved')
Searchable as RT132035$
The text was updated successfully, but these errors were encountered: