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
where constraint in blockless declaration causes spurious gobbling error #5200
Comments
From trey@cpan.orgExample: % perl6 -e 'sub MAIN ( |
From @lizmatunit sub ??? I thought that unit was only supposed to be followed by a package like declaration??
|
The RT System itself - Status changed from 'new' to 'open' |
From trey@cpan.orgNo, see S06-routines.pod: As with module and class declarations, a sub declared unit sub MAIN ($directory, :$verbose, *%other, *@filenames); This form is allowed only for simple subs named C<MAIN> that are On Sat, Mar 26, 2016 at 7:02 AM Elizabeth Mattijsen via RT <
|
From @lizmatPerhaps we should disallow “unit” with -e?
|
From trey@cpan.orgIt's not only in -e. I just used that for my example. A file with a unit On Mon, Mar 28, 2016, 17:39 Elizabeth Mattijsen via RT <
|
From @jnthnOn Fri Mar 25 18:10:03 2016, trey@cpan.org wrote:
Fixed by removing a check that I really couldn't figure out the point of, despite some time trying: No spectests cared for it either, so it's gone. Talking of spectests, I also added a couple of cover this bug, in S06-other/main-semicolon.t, so if we do re-instate such a thing some day it at least won't have this problem. :-) |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127785 (status was 'resolved')
Searchable as RT127785$
The text was updated successfully, but these errors were encountered: