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

Packagename is detected wrongly by RequireExplicitInclusion if preceeded with minus #6

Open
ksmadsen opened this issue Oct 21, 2015 · 0 comments
Labels

Comments

@ksmadsen
Copy link

A testcase to illustrate the problem:

## name Correct packagename, when starting with minus
## failures 0
## TODO This isn't working yet
## cut
use Foo::Bar;

-Foo::Bar->test();

The errormessage in this case is "Use of "::Bar" without including "::Bar" Without importing a package, it is unlikely that references to things inside it even exist.", so it appears that the minus confuses the code that computes the packagename. If the minus is changed to a +, the test passes.

@petdance petdance added the bug label Jan 23, 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

2 participants