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

Missing file/line information when 'use'ing a module with sub EXPORT #5033

Open
p6rt opened this issue Jan 10, 2016 · 1 comment
Open

Missing file/line information when 'use'ing a module with sub EXPORT #5033

p6rt opened this issue Jan 10, 2016 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Jan 10, 2016

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

Searchable as RT127230$

@p6rt
Copy link
Author

p6rt commented Jan 10, 2016

From @drforr

test.pl6​:

--cut here--
#!/usr/bin/env perl6

use v6;
use lib '.';
use Bug;
--cut here--

Bug.pm6​:

--cut here--
sub EXPORT([])
  { # Not returning anything here in order to tickle the runtime bug
  }
--cut here--

Running the test file gives​:

--cut here--
jgoff@​Demeisen​:~/Bug$ perl6 test.pl6
===SORRY!===
&EXPORT sub did not return an Map
--cut here--

The error message is perfectly correct, but missing the file and line
information that would make it easy to track down the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant