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 · Fixed by #10103
Closed

XDeclaredButNotUsed shows redundant info: declaration location shown twice #10101

timotheecour opened this issue Dec 27, 2018 · 0 comments · Fixed by #10103

Comments

@timotheecour
Copy link
Member

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)

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.

2 participants