summary refs log tree commit diff stats
path: root/tests/errmsgs
Commit message (Collapse)AuthorAgeFilesLines
* add test case for pure enum redefinition error within enum (fixed in recent ↵Timothee Cour2021-06-151-7/+14
| | | | | | | | | | | | | PR) (#18266) * add test case for pure enum redefinition error within enum (fixed in recent PR) * remove code duplication * Revert "remove code duplication" (would require bootstrap >= 1.4) This reverts commit 3f793874c231f847ef015e37a5fd6851f85d9675. * fixup
* Small scope refactoring (#18263)Clyybber2021-06-141-0/+12
| | | | | | | * Small scope refactoring * Add test for #10251 * Add inline where appropriate
* followup #17777: declaredloc field error msgs now work with generics (#18259)Timothee Cour2021-06-141-15/+25
| | | | | | | * followup #17777: declaredloc field error msgs now work with generics * fix tests * cleanup
* more informative error msg for undeclared field (`A(badfield: 1)` and ↵Timothee Cour2021-05-161-0/+40
| | | | `a.badfield = expr`) (#17777)
* fix #17859; rename tests so they run in CI; merge several tests with nim ↵Timothee Cour2021-04-277-54/+44
| | | | | | | | | | | | | check (#17862) * rename a test so it runs in CI; merge several tests with nim check * continue * continue * continue * rename tests/errmsgs/undeclared_routine_compiles.nim -> tests/errmsgs/tundeclared_routine_compiles.nim
* fix typo in test name undeclared_routime.nim => undeclared_routine.nim (#17861)Timothee Cour2021-04-267-17/+17
|
* fix CI tests/errmsgs/tgcsafety.nim (#17721)Timothee Cour2021-04-141-1/+1
|
* simplify asyncfutures, asyncmacro (#17633)Timothee Cour2021-04-141-1/+2
|
* close #17636 (#17643)flywind2021-04-065-8/+3
|
* fix #16693: testament spec nimout too lax (#16698)flywind2021-04-042-2/+2
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix #14850: `repr` now correctly renders `do` (#17623)Timothee Cour2021-04-031-2/+2
| | | | | | | * fix #14850: `repr` now correctly renders `do` * add tests * fix test
* [nim check]fix #17460 (#17569)flywind2021-03-291-0/+19
|
* fixed dot operator recursive loop & macro suggest (#16922)Saem Ghani2021-02-151-7/+8
| | | | | | | | | | | | | | | | | | * basic stability improvements; refs nimsuggest * fixed dot operator recursive loop & macro suggest * hacky fix for run away dot operator sem check Committing this mostly to make the issue more clear. Perhaps get better feedback. * semExprWithType seems like a better place to check * fixed error messages const case expressions * Clean-up test * stopped the dot operator madness No longer get infinite recursion when seming broken code with a dot operator macro like in jsffi. Co-authored-by: Araq <rumpf_a@web.de>
* typeToString: type float => typedesc[float] (#17011)Timothee Cour2021-02-124-8/+8
| | | | | | | * typeToString: type float => typedesc[float] * fixup * fix tests
* fix floats slice (#16853)flywind2021-01-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * see whether it breaks * fix * fix * minor * fix * add enum * use Ordinal types * fix tests * fix * another style * fix remainning cases
* close #10735 add testcase (#16690)flywind2021-01-151-0/+41
|
* close #10734 add testcase (#16692)flywind2021-01-121-0/+19
| | | | | | | * close #10734 add testcase * fix * fix
* strutils.nim: Use `func` everywhere (#16281)ee72020-12-071-3/+3
| | | | | | | | | | | | | * strutils.nim: procs with {.noSideEffect.} -> func * strutils.nim: procs without {.noSideEffect.} -> func * strutils.nim: proc -> func for links * strutils.nim: proc -> func in doc comments * test: add strutils to strictFuncs test * test: proc -> func in errmsg test
* testament spec: remove errmsg alias of errormsg (#16188)Timothee Cour2020-11-294-4/+4
|
* asynchttpserver cleanups [backport:1.0] (#15966)Andreas Rumpf2020-11-151-1/+1
| | | | * asynchttpserver cleanups [backport:1.0]
* makes test green againAraq2020-11-131-2/+2
|
* honor --declaredLocs in more places, including type mismatch errors; also ↵Timothee Cour2020-10-272-3/+3
| | | | | | | show `kind` with --declaredLocs (#15673) * honor --declaredLocs in more places, including type mismatch errors * fix tests * show declaration location also when type mismatch names clash
* docgen: improve alignment of comments (still not perfect) (#15506)Andreas Rumpf2020-10-071-2/+2
| | | | | | | * docgen: improve alignment of comments (still not perfect) * fix error message text in `tunknown_named_parameter` Co-authored-by: narimiran <narimiran@disroot.org>
* fix #6608 (#14963)flywind2020-07-141-0/+16
| | | | * fix #6608
* typetraits.$: $((int, float), int)` is now `"((int, float), int)"` instead ↵Timothee Cour2020-07-022-4/+4
| | | | | of `"(tuple of (int, float), int)" (#14812) Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Implement rendering of `[]=`, `{}`, `{}=` braces (#14539)cooldome2020-06-011-3/+3
| | | | | | | * render curly braces * fix typo * fix test Co-authored-by: cooldome <ariabushenko@bk.ru>
* disallow typedesc in arrays & move existing checks to `types.typeAllowedAux` ↵Neelesh Chandola2020-05-296-8/+8
| | | | | | (#13261) * disallow typedesc in arrays and move previous checks to types.typeAllowedAux
* improve the 'has to be discarded' error messageAraq2020-05-021-1/+1
|
* fixes #12741 (#14005)Andreas Rumpf2020-04-191-1/+1
| | | | * fixes #12741 * updated tests
* fixes #13715 (#13716)Arne Döring2020-03-221-1/+1
| | | | | * fixes #13715 * fix test
* fix #13538 sigmatch errors are now sorted (#13701)Timothee Cour2020-03-203-16/+16
| | | | | | | * fix #13538 sigmatch now sorted and has reliable order * re-enable tests that were disabled because of that bug * fix remaining tests and un-disable 2 other tests that were affected by this bug
* fixes #5170 (#13589)Andreas Rumpf2020-03-052-5/+5
| | | | | | * fixes #5170 * make tests green
* fix several bugs with `repr` (#13386)Timothee Cour2020-02-111-2/+1
|
* Revert "printing float values will have one more digit. (#13276) [backport]" ↵Timothee Cour2020-02-081-2/+3
| | | | | (#13363) This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
* printing float values will have one more digit. (#13276) [backport]Arne Döring2020-02-071-3/+2
| | | | * printing float values will have one more digit. Fixes #13196
* fix #13182: `proc fun(a: varargs[Foo, conv])` now can be overloaded (#13345) ↵Timothee Cour2020-02-071-0/+47
| | | | [backport]
* Assigning template to var/let/const gives a proper error (#12851)Neelesh Chandola2019-12-093-2/+15
| | | | | | * Assigning template to var/let/const gives a proper error * Fix style
* fix failing testnarimiran2019-11-071-1/+1
|
* refactor illegal iterator assignment detection (#12212)Arne Döring2019-10-111-0/+28
| | | | | | * refactor illegal iterator assignment detection * delete crappy test
* ungeneric unsigned ops (#12230)Jasper Jenkins2019-10-111-4/+4
| | | | | | | | | | * ungenericise unsigned ops, remove nimNewShiftOps * fix/remove tests * update t6448 * fix line info * disable on 32bit * fix different line info * add changelog entry
* error for NimNode index kind (#12154)Jasper Jenkins2019-09-083-0/+24
|
* typeToString can now show (recursively) resolved type aliases; fixes #8569 ↵Timothee Cour2019-08-312-2/+2
| | | | | | | | | | | #8083 #8570 (#11678) * nested typeToString * typeToString: preferResolved * add test * fix test * preferMixed * fix tests
* fixes 5870 (#11704)Andreas Rumpf2019-08-291-0/+17
| | | | | | * fixes #5870 * make tclosure test green again * this check is correct but breaks some Nimble packages
* fixes #11833 (#12018)Andreas Rumpf2019-08-241-2/+2
|
* fixes #11942 (#11945)Arne Döring2019-08-141-5/+5
|
* disallow static in return type (#9686) [nobackport]Arne Döring2019-08-061-0/+10
|
* Merge pull request #11680 from timotheecour/pr_fix_sigmatch_errmsgAndreas Rumpf2019-07-176-7/+185
|\ | | | | fixes #8305; fixes #7808; fixes #10285; fixes #11061 + other bugs with type mismatch error msgs
| * address commentsTimothee Cour2019-07-081-59/+9
| |
| * add tests for #8305 #7808 #10285 #11061 + other bugsTimothee Cour2019-07-081-18/+98
| |
| * make tests/concepts/t3330.nim disabled again: the order of candidates is ↵Timothee Cour2019-07-081-0/+142
| | | | | | | | machine dependent