summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* fix sighashes for generic ref (#20723)Jacek Sieka2022-11-011-1/+2
| | | | the `hashType` issue in #12229 was never really fixed - it just stopped being called in that context
* fix semcase on tySequence and tyObject #20283 #19682 (#20339)Bung2022-11-013-8/+12
| | | | | | | | | | | | | * fix semcase on tySequence and tyObject #20283 #19682 * use better arg name * avoiding returns nil use errorNode instead, clean code * use efNoDiagnostics flag * remove tests/errmsgs/t19682.nim * combine 2 test cases to one file
* refactor os imports into corresponding small modules (#20720)ringabout2022-11-011-1/+2
|
* fix #20272 range of uint64 shows signed upper bound (#20702)Bung2022-11-011-1/+4
|
* fixes #20715; range[a..b] inside object variant fails (#20716)ringabout2022-10-311-5/+6
| | | | | | | | | | | * fixes #20715; range[a..b] inside object variant fails * step one fix * better fix * fixes private fields * mistake
* fix closure iter state table init type [backport] (#20717)Jacek Sieka2022-10-311-1/+1
| | | | | | | fix closure iter state table init type It is a well-known fact that using closed intervals for ranges is logically, objectively and eternally wrong, as evidenced by this off-by-one.
* fix dispatcher call type [backport] (#20696)Jacek Sieka2022-10-291-0/+1
| | | | | | fix dispatcher call type The call node should have the type of the dispatcher, not the static call
* fix #20148 implicit compile time conversion int to ranged float cause… ↵Bung2022-10-291-1/+4
| | | | | (#20698) fix #20148 implicit compile time conversion int to ranged float causes compiler fatal error
* alternate fix + test for #12094, refs #13804 (#20686)metagn2022-10-292-3/+2
|
* fixes #20681; add efSkipFieldVisibilityCheck to skip check (#20639)ringabout2022-10-284-18/+22
| | | | | | | | | | | | | | | | | * don't sem const objectConstr defaults * fixes * add `efSkipFieldVisibilityCheck`; fixes nkBracket types * fixes #20681 * fixes tests * suggestion from @metagn * fixes tests Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* fixes type check of ranges for default fields (#20660)ringabout2022-10-271-2/+4
|
* int128.nim fix warnings (#20666)Juan Carlos2022-10-271-5/+4
| | | | | | | * Silence warning false positive for int128.nim: Warning: target type is larger than source type * Silence warning false positive for int128.nim: Warning: target type is larger than source type * https://github.com/nim-lang/Nim/pull/20666#discussion_r1006162835
* fix #6637 array index type depends generic (#20673)Bung2022-10-271-1/+1
|
* fixes #19201; fixes sink causes crash in VM (#20658)ringabout2022-10-251-1/+1
|
* fix #12094 Use of _ (as var placeholder) inside a template causes XDe… ↵Bung2022-10-251-1/+2
| | | | | (#20635) fix #12094 Use of _ (as var placeholder) inside a template causes XDeclaredButNotUsed
* add type check for default fields (#20652)ringabout2022-10-251-2/+10
|
* fixes #1027; disallow templates to use ambiguous identifiers (#20631)ringabout2022-10-241-0/+2
| | | | | | | | | | | | | | | | | | | | * test qualifiedLookUp in templates * check later * add testcase * add 4errormsg * Update tests/template/m1027a.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update tests/template/m1027b.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* fixes #20645 (#20646)Andreas Rumpf2022-10-242-6/+13
| | | | | * fixes #20645 * better bugfix
* Added 'openArray[char]' overloads to 'std/parseutils' (#20527)Jason Beetham2022-10-242-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added 'openarray[char]' overloads to 'std/parseutils' * Removed redundant `start` and `last` params from slice using procs * Fixed type for parseIdent overload * fixed one by off with 'substr' * removed missed start parameters for procedures * Added 'openarray[char]' overloads to 'std/parseutils' * Removed redundant `start` and `last` params from slice using procs * Fixed type for parseIdent overload * fixed one by off with 'substr' * removed missed start parameters for procedures * Fixed VM op to work with new 'opcSlice' * Corrected captureBetween's logic to work with openarray * js sys's parsefloat logic now uses openarray Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* fixes #19278; make `privateAccess` work with generic ref object (#20640)ringabout2022-10-241-2/+2
| | | | | * fixes #19278; make `privateAccess` work with generic ref object * fixes
* borrowed procs can have a body now for documentation generation (#20617)ringabout2022-10-241-2/+3
| | | | | * borrowed procs can have a body now * fixes examples
* Fix double defer with break in closureiterators [backport] (#20630)Tanguy2022-10-241-0/+2
| | | | | | | Fix double defer with break in closureiterators Signed-off-by: Tanguy <tanguy@status.im> Signed-off-by: Tanguy <tanguy@status.im>
* Unpack mSlice tupleconstr for static openarrays (#20615)Jason Beetham2022-10-221-0/+21
|
* fixes a strict case object problem that has been reported on the forum (#20614)Andreas Rumpf2022-10-211-1/+4
|
* fix #20152 Illegal capture of closure iterator, when should be legal (#20607)Bung2022-10-211-1/+1
|
* fix #19349 incompatible type when mixing float32 and cfloat in generics (#20551)Bung2022-10-211-1/+2
|
* fix #19426 compile error using when/elif/else and typedesc in template (#20550)Bung2022-10-211-0/+1
|
* implemented strictCaseObjects (#20608)Andreas Rumpf2022-10-213-6/+11
| | | | | * implemented strictCaseObjects * changelog update
* Implemented `mSlice` on the VM allowing `toOpenArray` to work at compile ↵Jason Beetham2022-10-203-30/+166
| | | | | | | | | | | | | | | | | | | | | | | | | time. (#20586) * Implemented opcSlice to make 'toOpenArray' work on the VM * Added nkOpenArray for VM to reduce bodgeness * Fixed range issues and erraneous comments * Range check correctly for openArrays in opcLdArr * Inverted logic for ldArr checking * vm now supports slicing strings * Added string tests * Removed usage of 'nkOpenArray' and redundant operations * Refactored vmSlice implementation, removing redundant and incorrect code * Made tuples go throw opcWrObj for field assignment * All strkinds should be considered for openarrays
* change vm imports after bootstrapping (#20602)ringabout2022-10-201-1/+2
|
* [std/os] split and re-export (#20593)ringabout2022-10-201-3/+6
| | | | | | | * [std/os] split and export * move to private modules * fixes docs and tests Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* [backport] Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent ↵SirOlaf2022-10-181-0/+5
| | | | | | | | | | | | (#20578) * Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent * Add test * Update compiler/lookups.nim Co-authored-by: SirOlaf <a> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* refactor envvars, oserrors; register vmops (#20592)ringabout2022-10-181-7/+10
| | | | | * refactor envvars, oserrors; register vmops * remove type definitions
* fixes #20572 (#20585)Andreas Rumpf2022-10-1723-69/+85
| | | | | * fixes #20572 * added a test case
* Fix #12517 Allow single branch when nimvm statements (#20577)Can Lehmann2022-10-171-3/+6
| | | Allow single branch when statements
* Fix "imported but not used" warnings (#20575)Andrey Makarov2022-10-166-7/+7
|
* fixes #20515; base `method` requires explicit `{.gcsafe.}` to be GC-safe ↵ringabout2022-10-161-4/+12
| | | | | | | (#20574) * fixes #20515; base requires explicit `{.gcsafe.}` to be GC-safe * add tests
* fixes #19162; enable `strictEffects` for v2 (#19380)ringabout2022-10-153-9/+6
| | | | | | | | | | | | | | | | | | | * enable stricteffects * add gcsafe * fix tests * use func * fixes pegs tests * explicitly mark repr related procs with noSideEffect * add nimLegacyEffects * change URL * fixes docopt * add `raises: []` to repr * fixes weave * fixes nimyaml * fixes glob * fixes parsetoml * Apply suggestions from code review * Update testament/important_packages.nim * add legacy:laxEffects
* fix #19700 Crash when passing a template to a generic functio… (#20567)Bung2022-10-151-0/+2
| | | fix nim-lang#19700 Crash when passing a template to a generic function expecting a procedure
* fix #8821 JS codegen can produce extreme switch statements with case … ↵Bung2022-10-141-6/+1
| | | | | | | (#20548) * fix #8821 JS codegen can produce extreme switch statements with case a of range * remove totalRange
* fixes #3748 (#20563)Andreas Rumpf2022-10-142-4/+5
| | | | | | | | | * fixes #3748 * fix the regression * don't use the new allocator for the SSL wrapper * fixes regression
* fixes #20553; don't format code for stropping identifier (#20561) [backport]ringabout2022-10-131-5/+9
| | | | | | | * fixes #20553; don't format code for stropping identifier * add tests * Update nimpretty/tests/expected/simple.nim
* fix #18136 tests/proc/t17157.nim now gives SIGSEGV instead of error (#20555)Bung2022-10-131-0/+1
|
* fix #18990 Regression in proc symbol resolution; Error: attempting to… ↵Bung2022-10-121-2/+2
| | | | | (#20554) fix #18990 Regression in proc symbol resolution; Error: attempting to call routine
* Return error message in output of gorge/staticExec. (#18942)Dominik Picheta2022-10-121-2/+9
| | | | | * Return error message in output of gorge/staticExec. * Document nimLegacyGorgeErrors in changelog.
* fix #7446 Generics: type mismatch 'SomeunsignedInt or Natural' (#20522)Bung2022-10-111-2/+1
| | | | | * fix #7446 Generics: type mismatch 'SomeunsignedInt or Natural' * try fix
* 'lock levels' are deprecated, now a noop (#20539)ringabout2022-10-1110-159/+12
| | | | | * 'lock levels' are deprecated, now a noop * fixes tests
* time to make IC work with ORC (here we go again...) (#20538)Andreas Rumpf2022-10-113-11/+40
| | | works for me
* refactorings (#20536)Andreas Rumpf2022-10-109-16/+16
| | | | | | | * refactoring * refactoring: removed unused macroUsagesSection * enum instead of bool for better readability
* Make rstgen work with gcsafe (#20534)ringabout2022-10-104-5/+9
| | | | | | | | | | | * Make rstgen work with gcsafe Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> * add tests and fixes * if nimHasWarningAsError Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>