about import warning #3737
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: Checker
Bugs/feature requests, that are related to the type checker.
V version:
latest:V 0.1.25 5a6f4aa
OS:
mac
What did you do?
in my module,when I import time module,I just want to use the C function defined
I do not use any other function or struct in time module
What did you expect to see?
the code can run without a warning.
I think one module just only use the C function defined in the other module,It can also be treated as
use the module
What did you see instead?
the V compiler give me a warning:the following imports were never used: time
so I have to redefine C.timeval struct in my own module
The text was updated successfully, but these errors were encountered: