mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Refs #24158 Fixes the line info of the module symbol (cases like `import as` and grouped imports had wrong line info). Since that symbol's line info is now used for the warnings, there isn't a separate line info stored for `unusedImports` Examples of fixed cases ```nim import strutils as test #[ ^ before ^ after ]# # This case was fixed by #24158, but only for unused imports import std/[strutils, strutils] #[ ^ before ^ after ]# from strutils import split #[ ^ before ^ after ]# ```