Navigation Menu

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

Comment after closing sub brace breaks debugger #4666

Open
p6rt opened this issue Oct 21, 2015 · 1 comment
Open

Comment after closing sub brace breaks debugger #4666

p6rt opened this issue Oct 21, 2015 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 21, 2015

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

Searchable as RT126422$

@p6rt
Copy link
Author

p6rt commented Oct 21, 2015

From doug@veritablesoftware.com

Perl 6 Version​:

This is perl6 version 2015.09-428-g46874fd built on MoarVM version
2015.09-79-gee9fc2b

When I try to run this program in the debugger​:

#!/usr/bin/env perl6

use v6;

foo();
bar();

sub foo {
  say 'foo';
} # END​: foo

sub bar {
  say 'bar';
} # END​: bar

I get this from the debugger​:

$ perl6-debug-m comment_bug.p6

LOADING comment_bug.p6
===SORRY!=== Error while compiling
/development/perl6/introduction_to_perl_6/functions/comment_bug.p6
Strange text after block (missing semicolon or comma?)
at /development/perl6/introduction_to_perl_6/functions/comment_bug.p6​:12
------> }⏏ # END​: foo
  expecting any of​:
  infix
  infix stopper
  statement end
  statement modifier
  statement modifier loop

It apparently only happens if there is code after sub foo {...}. Thanks!

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant