Skip to content
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

small issue with trace in given/when default block #4345

Open
p6rt opened this issue Jun 24, 2015 · 1 comment
Open

small issue with trace in given/when default block #4345

p6rt opened this issue Jun 24, 2015 · 1 comment
Labels
LHF Low-hanging fruit, easy to resolve LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Jun 24, 2015

Migrated from rt.perl.org#125477 (status was 'new')

Searchable as RT125477$

@p6rt
Copy link
Author

p6rt commented Jun 24, 2015

From @drforr

In the following code fragment, the die() message has two spaces after
'block'. I'm guessing that the name 'default' is missing here, and the
sentence should read 'in block default at /home/jgoff/bug.t​:9' as all of
the other stacktrace lines have names in this location.

--cut here--
use v6;

my $t = 'fallthru';
given $t {
  when 'foo' {
  say "doing stuff";
  }
  default {
  die "falling through";
  }
}
--cut here--

--cut here--
perl6 ~/bug.t
falling through
  in block at /home/jgoff/bug.t​:9
--cut here--

@p6rt p6rt added LHF Low-hanging fruit, easy to resolve LTA Less Than Awesome; typically an error message that could be better labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LHF Low-hanging fruit, easy to resolve LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant