You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
include evil_leak
when isMainModule:
let
some_var = 2
And the file evil_leak.nim:
const
SOME_VAR = "some var"
The compiler produces the following output:
$ nimrod c variable_leaks.nim
variable_leaks.nim(5, 12) Error: redefinition of 'some_var'
It would help if the redefinition error could also point to the file/line where the original definition is, since a naive case sensitive grep would not find the source of the problem.
The text was updated successfully, but these errors were encountered:
Given the file
variable_leaks.nim
:And the file
evil_leak.nim
:The compiler produces the following output:
It would help if the redefinition error could also point to the file/line where the original definition is, since a naive case sensitive grep would not find the source of the problem.
The text was updated successfully, but these errors were encountered: