Single selective import will produce a warning "module is imported but never used" #23412
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Unit: Parser
Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).
Describe the bug
When selectively importing a single statement inside of a module, a warning is raised.
Reproduction Steps
Interpret or compile the main file:
Expected Behavior
No warnings when selectively importing one module.
Current Behavior
It produce a warning when compiing or interpreting the code:
Possible Solution
In the mean time I just import the module without selective import, and access my statement (see below).
Additional Information/Context
Simple module import produces no warnings when used in place of a single selective import. This code below will produce no warnings:
V version
0.4.9
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: