Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
Nim Compiler Version 0.20.99 [Linux: amd64]
Compiled at 2019-07-16
Copyright (c) 2006-2019 by Andreas Rumpf
git hash: 44d80dd86373b9ba41051428948eae30ed97acd3
active boot switches: -d:release
When running compiling the below test code with
--styleCheck:hint
, I get an incorrect [Name] refactoring suggestion.The compiler is mixing up the enum element
reSet
with thereset
proc of Nim objects.Command to run
Expected outcome
The below [Name] warning should not show up.
Actual output
What's worse is that I can never run with
--styleCheck:error
on such projects due to this incorrect warning.Ref: https://github.com/nitely/nim-regex/pull/40#issue-298183684
Nim version