summary refs log tree commit diff stats
path: root/tests/deprecated
Commit message (Collapse)AuthorAgeFilesLines
* ref #20846; give a deprecation message for overriding `=` hook (#21020)ringabout2022-12-051-0/+11
| | | give a deprecation message for overriding `=` hook
* store full definition AST for consts, fix noRewrite (#20115)metagn2022-09-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | * continue #9582 for consts, close #9331, fix #20114 also move extractPragma to ast to pave the way for things like {.strdefine: "abc".} etc * changelog correctly * fix jsgen * update tgetimpl * fix sighashes * fix #19766, add comment about postfix * fix noRewrite LOL refs #16620 * fix changelog * fix destructors
* even lighter version of #17938: fix most issues with UnusedImport, ↵Timothee Cour2021-06-261-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fix #11009 (#14935)flywind2020-07-091-0/+10
|
* fix #8063 by adding a testcase for: Deprecation warnings for enum values ↵Timothee Cour2019-01-311-2/+25
| | | | print twice (#10508)
* {.deprecated: msg.} now works for vars and lets (#10234)Neelesh Chandola2019-01-082-7/+9
|
* Show deprecation warning for fields of a deprecated enum (#10112)Neelesh Chandola2018-12-301-4/+14
| | | | | | * Show deprecation warning for fields of a deprecated enum * Add test
* require errormsg to be specified before file.Arne Döring2018-12-111-1/+1
|
* More robust handling of deprecated pragmas (#8696)LemonBoy2018-08-213-0/+40
| | | | | | Prevent `deprecated` annotations to "slip" up to the parent module and warn about unsupported annotations. Accidentally fixes #7867
* fixes --gc:none regression; made some tests greenAraq2015-03-101-2/+2
|
* some love for the testsuite; fixed regressionsAraq2015-03-011-3/+1
|
* new tester; all tests categorizedAraq2014-01-131-0/+11