Nim/tests/modules
Timothee Cour b8f761b7e2
even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362)
* {.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
2021-06-26 15:21:46 +02:00
..
a fixes #12420 [backport] (#12456) 2019-10-18 22:13:24 +02:00
b fixes #12420 [backport] (#12456) 2019-10-18 22:13:24 +02:00
m9627 Fix compilation of test on linux and mac 2018-12-09 15:44:18 +05:30
tnotuniquename_dir remove the restriction that module names need to be unique per Nimble… (#11064) 2019-04-20 15:19:02 +02:00
definitions.nim
mexport2a.nim
mexport2b.nim
mexporta.nim
mexportb.nim
mforwarded_pure_enum.nim refactorings to prepare the compiler for IC (#15935) 2020-12-17 08:01:36 +01:00
mforwarded_pure_enum2.nim refactorings to prepare the compiler for IC (#15935) 2020-12-17 08:01:36 +01:00
mimport_in_config.nim fixes #9994 2018-12-15 14:30:21 +01:00
mmodule_same_proc.nim fixes #11188 (#11319) 2019-05-24 22:50:43 +02:00
mmodule_same_proc_client.nim fixes #11188 (#11319) 2019-05-24 22:50:43 +02:00
mnamspc1.nim
mnamspc2.nim
mnotuniquename.nim remove the restriction that module names need to be unique per Nimble… (#11064) 2019-04-20 15:19:02 +02:00
mopaque.nim
morder_depa.nim fixes #11187 (#11315) 2019-05-24 08:19:05 +02:00
morder_depb.nim fixes #11187 (#11315) 2019-05-24 08:19:05 +02:00
mrange.nim
mrecmod.nim
mrecmod2.nim
proxy_module.nim
seq.nim Add testcase for #4796 (#14784) 2020-06-25 15:12:30 +02:00
t8665.nim make run the default action of a test in tester 2018-11-23 11:58:28 +01:00
t9627.nim Fix compilation of test on linux and mac 2018-12-09 15:44:18 +05:30
tambig_range.nim add whitespace on the right-hand side of -- 2019-05-03 11:33:29 +02:00
tcanimport.nim
texplicit_system_import.nim fix #17952: fix both false positives and false negatives for reInvalidSpec (#17956) 2021-05-08 00:22:21 +02:00
texport.nim
texport2.nim make run the default action of a test in tester 2018-11-23 11:58:28 +01:00
tfowarded_pure_enum.nim refactorings to prepare the compiler for IC (#15935) 2020-12-17 08:01:36 +01:00
timport_in_config.nim fixes #9994 2018-12-15 14:30:21 +01:00
timport_in_config.nim.cfg fixes #9994 2018-12-15 14:30:21 +01:00
timportas.nim adopt tests 2018-11-08 22:28:29 +01:00
timportexcept.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tincludeas.nim fixes #11872; include now gives a proper error message for all invalid infix operators (#11965) 2019-08-17 19:45:47 +02:00
tmismatchedvisibility.nim Remove duplicate line number from 'invalid forward declaration' error (#11966) 2019-08-17 10:35:25 +02:00
tmodule_same_proc.nim fixes #11188 (#11319) 2019-05-24 22:50:43 +02:00
tnamspc.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tnotuniquename.nim remove the restriction that module names need to be unique per Nimble… (#11064) 2019-04-20 15:19:02 +02:00
tnotuniquename2.nim remove the restriction that module names need to be unique per Nimble… (#11064) 2019-04-20 15:19:02 +02:00
topaque.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
torder_dep.nim fixes #11187 (#11315) 2019-05-24 08:19:05 +02:00
trecinca.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
trecincb.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
trecmod.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
trecmod2.nim
treorder.nim fix test 2018-09-04 18:25:54 -05:00
tselfimport.nim even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362) 2021-06-26 15:21:46 +02:00
tseq.nim Add testcase for #4796 (#14784) 2020-06-25 15:12:30 +02:00
tstrutils_insert_sep.nim Fix #11352 strutil.insertSep() fails on negative numbers (#15087) 2020-07-28 11:47:22 +02:00
tuppercased.nim
tutils_ab.nim fixes #12420 [backport] (#12456) 2019-10-18 22:13:24 +02:00
UpperCased.nim