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

incorrect UnusedImport warning for var/let/const/type invoked inside a generic #17941

Closed
timotheecour opened this issue May 5, 2021 · 0 comments · Fixed by #17942
Closed

Comments

@timotheecour
Copy link
Member

Example

# funs.nim:
let bar3* = 123

# main.nim:
import funs
proc foo(a: auto) =
 let x = bar3

Current Output

Warning: imported and not used: 'funs'

Expected Output

no warning

Additional Information

timotheecour added a commit to timotheecour/Nim that referenced this issue May 5, 2021
timotheecour added a commit to timotheecour/Nim that referenced this issue May 5, 2021
timotheecour added a commit to timotheecour/Nim that referenced this issue May 6, 2021
timotheecour added a commit to timotheecour/Nim that referenced this issue May 8, 2021
Araq pushed a commit that referenced this issue May 8, 2021
…a generic (#17942)

* fix #17941: UnusedImport works for var/let/const/type invoked inside a generic

* fixup
PMunch pushed a commit to PMunch/Nim that referenced this issue Mar 28, 2022
… inside a generic (nim-lang#17942)

* fix nim-lang#17941: UnusedImport works for var/let/const/type invoked inside a generic

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

Successfully merging a pull request may close this issue.

1 participant