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

No warning when not using functions from imported module. #17432

Closed
islonely opened this issue Feb 28, 2023 · 0 comments · Fixed by #19738
Closed

No warning when not using functions from imported module. #17432

islonely opened this issue Feb 28, 2023 · 0 comments · Fixed by #19738
Assignees
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@islonely
Copy link
Contributor

Describe the bug

V gives you a warning when you import a module, but don't use it. I found a reproducible bug, that doesn't give you a warning.

Expected Behavior

Expected a warning saying math module was imported, but never used.

Current Behavior

Compiles with no warnings.

Reproduction Steps

import math { sin, cos }

fn main() {
    println('no warning')
}

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.3.3 b7b6c23

Environment details (OS name and version, etc.)

V 0.3.3 b7b6c23
PS C:\Users\imado> v doctor
OS: windows, Microsoft Windows 11 Pro v22621 64-bit
Processor: 16 cpus, 64bit, little endian,
CC version: Error: exec failed (CreateProcess) with code 2: The system cannot find the file specified.
cmd: cc --version

getwd: C:\Users\imado
vmodules: C:\Users\imado.vmodules
vroot: C:\Users\imado\v
vexe: C:\Users\imado\v\v.exe
vexe mtime: 2023-02-28 03:35:39
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.3 b7b6c23

Git version: git version 2.33.1.windows.1
Git vroot status: weekly.2023.09-4-gb7b6c236
.git/config present: true
thirdparty/tcc status: thirdparty-windows-amd64 1e6e7c6f

@islonely islonely added the Bug This tag is applied to issues which reports bugs. label Feb 28, 2023
@Delta456 Delta456 self-assigned this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants