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

XDeclaredButNotUsed shows redundant info: declaration location shown twice #10101

Closed
timotheecour opened this issue Dec 27, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@timotheecour
Copy link
Contributor

commented Dec 27, 2018

XDeclaredButNotUsed shows redundant info: declaration location shown twice

Example

see

treportunused.nim(19, 10) Hint: 'treportunused.s1(a: string)[declared in treportunused.nim(19, 9)]' is declared but not used [XDeclaredButNotUsed]

Current Output

treportunused.nim(19, 10) Hint: 'treportunused.s1(a: string)[declared in treportunused.nim(19, 9)]' is declared but not used [XDeclaredButNotUsed]

Expected Output

treportunused.nim(19, 10) Hint: `s1` is declared but not used [XDeclaredButNotUsed]

Additional Information

that's the root cause of @krux02 's complaint: #9766 (comment)

timotheecour added a commit to timotheecour/Nim that referenced this issue Dec 27, 2018

@Araq Araq closed this in #10103 Dec 27, 2018

Araq added a commit that referenced this issue Dec 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.