* {.used: symbol}
* add tests
* fix tests with --import
* --import works without giving spurious unused warnings
* new warning warnDuplicateModuleImport for `import foo; import foo`
* fix test, add resolveModuleAlias, use proper line info for module aliases
* fix spurious warnings
* fix deprecation msg for deprecated modules even with `import foo as bar`
* disable a test for i386 pending sorting XDeclaredButNotUsed errors
* UnusedImport now works with re-exported symbols
* fix typo [skip ci]
* ic support
* add genPNode to allow writing PNode-based compiler code similarly to `genAst`
* fix DuplicateModuleImport warning
* adjust test
* fixup
* fixup
* fixup
* fix after rebase
* fix for IC
* keep the proc inline, move the const out
* [skip ci] fix changelog
* experiment: remove calls to resolveModuleAlias
* followup
* fixup
* fix tests/modules/tselfimport.nim
* workaround tests/deprecated/tmodule1.nim
* fix properly
* simplify
23 lines
249 B
Nim
23 lines
249 B
Nim
import std/strutils
|
|
|
|
from std/os import fileExists
|
|
|
|
import std/typetraits as typetraits2
|
|
from std/setutils import complement
|
|
|
|
|
|
|
|
|
|
|
|
proc fn1() = discard
|
|
proc fn2*() = discard
|
|
|
|
|
|
let fn4 = 0
|
|
let fn5* = 0
|
|
|
|
|
|
const fn7 = 0
|
|
const fn8* = 0
|
|
|
|
type T1 = object
|