summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* add test to close #7209 (#22110)metagn2023-06-161-0/+13
| | | | | | | * add test to close #7209 was fixed by #22029 * fix echo => doAssert
* add tests to close #7223, close #11733 (#22111)metagn2023-06-163-8/+53
| | | | | add test to close #7223, close #11733 closes #7223, closes #11733, were fixed by #22076
* fixes #22049; fixes #22054; implicit conversion keeps varness (#22097)ringabout2023-06-162-0/+35
| | | | | | | | | | | | | | | | | | | | | * fixes #22054; codegen for var tuples conv * rethink fixes * add test cases * templates only * fixes var tuples * keep varness no matter what * fixes typ.isNil * make it work for generics * restore isSubrange * add a test case as requested
* consider object types as declarative in templates (#22106)metagn2023-06-161-0/+12
| | | | | | | | | * consider object types as declarative in templates fixes #16005 * correct logic for nkRecList children, inject fields * don't actually inject fields
* fixes ilegal recursion (#22105)Juan M Gómez2023-06-162-0/+12
|
* adds another pass for sets fixes #6259 (#22099)Juan M Gómez2023-06-151-0/+4
| | | | | | | * adds another pass for sets fixes #6259 * Update tsets.nim removes extra `#`
* Allows for arbitrary ordering of inheritance in type section #6259 (#22070)Juan M Gómez2023-06-152-3/+3
| | | | | | | | | | | | | * Allows for arbitrary ordering of inheritance in type section #6259 * prevents ilegal recursion * fixes ilegal recursion. Test passes with a better message * Apply suggestions from code review --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix calls in generic bodies, delay typecheck when no overloads match (#22029)metagn2023-06-134-36/+180
| | | | | | | | | | | | | | | | | | | | | | | * sacrifice "tgenericshardcases" for working statics * legacy switch for CI, maybe experimental later * convert to experimental * apparently untyped needs the experimental switch * try special case call semcheck * try fix * fix compilation * final cleanup, not experimental, make `when` work * remove last needed use of untyped * fix unused warning in test * remove untyped feature
* fixes #22065; do not search path for relative imports (#22073)ringabout2023-06-131-0/+5
| | | | | | | | | | | | | | | | | | | * fixes #22065; do not search path for "./" * simplify * fixes * fixes * allow ".." * cleanup * add a test case * slightly modify the import * adds a changelog
* strictly typecheck expressions in bracketed `emit` (#22074)metagn2023-06-131-0/+12
| | | | | * strictly typecheck expressions in bracketed `emit` * use nim check in test
* fixes #22058; invalid free with {.noSideEffect.} in template (#22088)ringabout2023-06-131-0/+16
|
* fix dot calls with resolved symbols in templates (#22076)metagn2023-06-123-23/+47
| | | | | | | | | | | | | * fix dot calls with resolved symbols in templates * make old code work * fix custom number literals test * remove leftover debug marker * enable "bug 9" test too * fix renderer, add test for #7085
* make binary `not` not parse complex expressions on right side (#22078)metagn2023-06-121-0/+18
| | | | | | | * binary `not` only parses simple expressions fixes #16324 * switch to primary
* more test cases for generic object impl AST (#22077)metagn2023-06-112-21/+49
| | | closes #9899, closes #14708, refs #21017
* make borrow `.` work with aliases if not overriden (#22072)metagn2023-06-111-1/+10
|
* add const RLIMIT_STACK (#21772)Qinsi (James) ZHU2023-06-091-0/+24
| | | | | | | * add const RLIMIT_STACK * generate by detect.nim * add generated const for linux-amd64
* make `move` use `=wasMoved` internally (#22032)ringabout2023-06-091-0/+14
| | | | | | | | | | | | | * make `move` use `=wasMoved` internally * fixes tests * fixes spawn finally * fixes views * rename to internalMove * add a test case
* Fix: don't track Defect in proc effect compatibility (#22037)Tanguy2023-06-081-0/+5
|
* allow addressing elements of openArray[char] in VM (#22045)ringabout2023-06-081-0/+14
| | | allow addressing elements of openArray[char]
* fixes {.global.} ref typedesc regressions (#22046)ringabout2023-06-081-5/+7
|
* Nested `with` blocks (#22042)awr12023-06-081-0/+16
| | | | | * Implemented with-nesting in underscoredCalls() * Add tests for nested with
* fixes overriden typo (#22044)ringabout2023-06-081-2/+2
|
* fixes #21995: align C++ with C backend behavior for empty raise state… ↵heterodoxic2023-06-071-0/+9
| | | | | | | (#21998) * fixes #21995: align C with C++ backend behavior for empty raise statements * make runtime behavior match across both C and C++ backend and all exception modes
* retain forced open undeclared ident information (#22019)metagn2023-06-071-0/+17
|
* add test case to close #7974 (#22023)metagn2023-06-061-0/+55
| | | close #7974 by adding test case
* close #12852; add a test case (#22016)ringabout2023-06-061-0/+55
|
* some test cleanups & category reorganization (#22010)metagn2023-06-06132-371/+186
| | | | | | | | | | | | | | | | | * clean up some test categories * mention exact slice issue * magics into system * move trangechecks into overflow * move tmemory to system * try fix CI * try fix CI * final CI fix
* post expr blocks colon fix + correct grammar (#21983)metagn2023-06-061-0/+8
| | | | | | | | | | | | | | | * post expr blocks colon fix + correct grammar fixes #21982 * fix dochelpers * this is remarkably common * use head for unchained * fix atlas * final grammar fix
* properly disallow unresolved generic proc values (#22005)metagn2023-06-051-8/+2
| | | | | | | * properly disallow unresolved generic proc values * mirrors semoperand * shallow efTypeAllowed, add back special case
* add test case for #7839 (#22006)Bung2023-06-051-0/+9
|
* infer error for `=dup` if there is a custom `=copy` error hook (#22004)ringabout2023-06-051-2/+2
|
* shallow fix for #21972, #18552 by moving std::exception_ptr to the parent ↵heterodoxic2023-06-041-0/+33
| | | | | sco… (#21988) shallow fix for #21972 by moving std::exception_ptr to the parent scope, minor cleanup
* fixes #21987; don't create type bound ops for anything in a function with a ↵ringabout2023-06-041-0/+48
| | | | | | | `nodestroy` pragma (#21992) * fixes #21987; don't create type bound ops for anything in a function with a `nodestroy` pragma * add a comment
* lift the `=dup` hook (#21903)ringabout2023-06-028-33/+35
| | | | | | * fixes tests again * remove helper functions * fixes closures, owned refs * final cleanup
* partially fixes #20787 by having a char dummy member prepended to objs only ↵heterodoxic2023-06-011-0/+4
| | | | | containing an UncheckedArray (i.e. C FAM) (#21979) partial fix for #20787
* fixes #21974; fixes sameConstant fieldDefect (#21981)ringabout2023-06-011-0/+30
| | | | | * fixes #21974; fixes sameConstant fieldDefect * add a test case
* Implements: [C++] constructor pragma improvement (fix #21921) (#21916)Juan M Gómez2023-05-301-2/+33
| | | | | | | | | | | | | | | * implements: [C++] constructor pragma improvement (fix #21921) t * fix test so it doesnt use echo in globals * Update compiler/ccgtypes.nim * Update lib/std/private/dragonbox.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* make `proc` not implicitly convert to `pointer` with a preview define (#21953)metagn2023-05-304-9/+10
| | | | | | | | | * test `proc` not converting to `pointer` * ignore define for now to test * remove cstring * fixes, changelog
* alternative to #21914; split, rsplit now forbid an empty separator (#21961)ringabout2023-05-301-0/+14
|
* Add anti-regression for #21958 (#21960)Mamy Ratsimbazafy2023-05-301-0/+11
| | | Add anti-regression test to close #21958
* fixes fieldDefect loses enum type info in ORC; consistent with VM and refc ↵ringabout2023-05-291-2/+1
| | | | | (#21954) fixes fieldDefect loses enum type info in ORC
* support generic void return type for templates (#21934)metagn2023-05-271-0/+6
| | | fixes #21920
* fixes #15428 by updating deep open array copy codegen (#21935)heterodoxic2023-05-271-0/+22
| | | | | * fix #15428 * add test
* fix #10964 by honoring pointer deref syntax if a reified openarray is used ↵heterodoxic2023-05-271-0/+6
| | | | | | | to get an array's length (#21925) * fix #10964 * add test
* fix & add test for basic hot code reloading case (#21915)metagn2023-05-261-0/+7
| | | fixes #21885
* fixes #21887; Type conversion on overloaded enum field does not always call ↵ringabout2023-05-261-0/+8
| | | | | | | | | | | (#21908) * fixes #21887; Type conversion on overloaded enum field does not always call * remove comments * add a test case * restrict it to enums
* Fix const in async regression (#21898)Jake Leahy2023-05-251-0/+13
| | | | | | | | | * Add test case for a const being used inside an async proc * Use `typeof` to get the type of the block instead of overloaded templates This removes the problem with the symbol having different types I am unsure why I didn't use this in the first place. IIRC I had problems with `typeof` when I first tried to use it in the original implementation
* when T is both a type symbol and a routine symbol in scope of a generic proc ↵metagn2023-05-242-0/+9
| | | | | do not account for the type symbol when doing `a.T()` (#21899) fix #21883
* actually fixes #21889 "constructor pragma doing nothing in globals" (#21897)Juan M Gómez2023-05-241-0/+24
| | | actually fixes #21889
* fix #21896 asign parameter to global variable generates invalid code (#21900)Bung2023-05-241-0/+9
|