-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use of _ (as var placeholder) inside a template causes XDeclaredButNotUsed hints #12094
Labels
Comments
kaushalmodi
added a commit
to kaushalmodi/nim_config
that referenced
this issue
Aug 30, 2019
The "discard _" is a workaround to get around the nim-lang/Nim#12094 issue on current Nim devel.
bung87
added a commit
to bung87/Nim
that referenced
this issue
Oct 23, 2022
…uses XDeclaredButNotUsed
bung87
added a commit
to bung87/Nim
that referenced
this issue
Oct 24, 2022
…uses XDeclaredButNotUsed
Araq
pushed a commit
that referenced
this issue
Oct 25, 2022
Thank you for the fix @bung87 ! |
metagn
added a commit
to metagn/Nim
that referenced
this issue
Oct 28, 2022
Araq
pushed a commit
that referenced
this issue
Oct 29, 2022
capocasa
pushed a commit
to capocasa/Nim
that referenced
this issue
Mar 31, 2023
…uses XDe… (nim-lang#20635) fix nim-lang#12094 Use of _ (as var placeholder) inside a template causes XDeclaredButNotUsed
capocasa
pushed a commit
to capocasa/Nim
that referenced
this issue
Mar 31, 2023
narimiran
pushed a commit
that referenced
this issue
Apr 25, 2023
narimiran
pushed a commit
that referenced
this issue
Apr 25, 2023
narimiran
pushed a commit
that referenced
this issue
Apr 25, 2023
bung87
added a commit
to bung87/Nim
that referenced
this issue
Jul 29, 2023
…uses XDe… (nim-lang#20635) fix nim-lang#12094 Use of _ (as var placeholder) inside a template causes XDeclaredButNotUsed
bung87
pushed a commit
to bung87/Nim
that referenced
this issue
Jul 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is typical to do something like
(dirName, baseName, _) = splitFile("/a/b")
where you do not care about that 3rd element of the tuple.When that is used outside a template, as expected, the XDeclaredButNotUsed hint is not printed, good.
But when the same code is used inside a template, I get messages like:
Example
Current Output
Expected Output
The same output, but that Hint should not appear.
Additional Information
Update (2021/06/10):
I re-confirm this issue on the latest devel:
The text was updated successfully, but these errors were encountered: