| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
fixes #21208
|
|
|
|
|
|
|
|
|
| |
* Don't ignore return in semTemplateDef
* Add test
---------
Co-authored-by: SirOlaf <>
|
|
|
|
|
| |
allow non-pragma special words as macro pragmas
fixes #22525
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#22527)
* fix getNullValue for cstring in VM
fixes #22524
* very ugly fixes, but fix #15730
* nil cstring len works, more test lines
* fix high
|
|
|
|
|
| |
* use old typeinfo generation for hot code reloading
* at least test hello world compilation on orc
|
| |
|
| |
|
| |
|
|
|
| |
fixes #22490, fixes #22491, adapts #22029 to type conversions
|
|
|
| |
closed #22748; cursorinference + -d:nimNoLentIterators results in erroneous recursion
|
|
|
| |
Ping @narimiran please backport to the 2.0 line.
|
| |
|
|
|
| |
fixes #22469; generates `nimTestErrorFlag` for top level statements
|
|
|
|
|
| |
* relax the parameter of `ensureMove`; allow let statements
* fixes the test
|
|
|
|
|
| |
(#22452)
close #17045;Compiler crash when a tuple iterator with when nimvm is iterated in a closure iterator
|
| |
|
|
|
|
|
|
|
| |
* fixes move sideeffects issues [backport]
* fix openarray
* fixes openarray
|
|
|
|
|
| |
* adds support for functor in member
* improves functor test
|
|
|
|
|
|
|
|
|
| |
* fix #19304 Borrowing std/times.format causes Error: illformed AST
* follow suggestions
* mitigate for #4121
* improve error message
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove call-specific replaceTypeVarsN
* Run for all call kinds and ignore typedesc
* Testcase
---------
Co-authored-by: SirOlaf <>
|
| |
|
|
|
| |
* fix #5780
|
|
|
|
| |
(#22413)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix #12938 nim compiler assertion fail when literal integer is passed as template argument for array size
* use new flag tfImplicitStatic
* fix
* fix #14193
* correct tfUnresolved add condition
* clean test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixes #22419; async/closure environment does not align local variables
* Apply suggestions from code review
* Update tests/align/talign.nim
Co-authored-by: Jacek Sieka <arnetheduck@gmail.com>
* apply code review
* update tests
---------
Co-authored-by: Jacek Sieka <arnetheduck@gmail.com>
|
|
|
|
|
| |
* fix #20891 Illegal capture error of env its self
* fix innerClosure too earlier, make condition shorter
|
|
|
| |
fixes #22373
|
|
|
|
|
| |
(#20683)
* fix #18823 Passing Natural to bitops.BitsRange[T] parameter in generic proc is compile error
|
|
|
|
|
|
|
|
|
|
| |
* [C++] Member pragma RFC #530
rebase devel
* changes the test so `echo` is not used before Nim is init
* rebase devel
* fixes Error: use explicit initialization of X for clarity [Uninit]
|
|
|
|
|
| |
Fix `succ`, `pred`
Fix `genRangeChck` for unsigned ints
Fix typo in `dec`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Play with typeRel
* Temp solution: Fixup call's param types
* Test result type with two generic params
* Asserts
* Tiny cleanup
* Skip sink
* Ignore proc
* Use changeType
* Remove conversion
* Remove last bits of conversion
* Flag
---------
Co-authored-by: SirOlaf <>
|
|
|
|
|
| |
(#22388)
* fix #15005 [ARC] Global variable declared in a block is destroyed too early
|
|
|
| |
* add test for #3907
|
|
|
|
|
|
|
| |
(#22328)
* Use `int` in `digitsutils`, `dragonbox`, `schubfach`
* Fix error message
|
|
|
|
|
|
|
| |
* Fix searchExtPos so that it returns -1 when the path is not a file ext
* fix comparision expression
* Remove splitDrive from searchExtPos
|
|
|
|
|
|
|
|
|
| |
* fix #20883 Unspecified generic on default value segfaults the compiler
* fallback to isGeneric
* change to closer error
* Update t20883.nim
|
|
|
|
|
|
|
| |
* Add test case
* Add in a bounds check when accessing generic types
Removes idnex out of bounds exception when comparing a generic that isn't fully instantiated
|
|
|
| |
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Infer generic bindings
* Simple test
* Add t
* Allow it to work for templates too
* Fix some builds by putting bindings in a template
* Fix builtins
* Slightly more exotic seq test
* Test value-based generics using array
* Pass expectedType into buildBindings
* Put buildBindings into a proc
* Manual entry
* Remove leftover `
* Improve language used in the manual
* Experimental flag and fix basic constructors
* Tiny commend cleanup
* Move to experimental manual
* Use 'kind' so tuples continue to fail like before
* Explicitly disallow tuples
* Table test and document tuples
* Test type reduction
* Disable inferGenericTypes check for CI tests
* Remove tuple info in manual
* Always reduce types. Testing CI
* Fixes
* Ignore tyGenericInst
* Prevent binding already bound generic params
* tyUncheckedArray
* Few more types
* Update manual and check for flag again
* Update tests/generics/treturn_inference.nim
* var candidate, remove flag check again for CI
* Enable check once more
---------
Co-authored-by: SirOlaf <>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
| |
(#22376)
Revert "fix #22173 `sink` paramers not moved into closure (refc) (#22359)"
This reverts commit b40da812f7aa590ed16df54a492684c228320549.
|
|
|
|
|
| |
* use genRefAssign when assign to sink string
* add test case
|
| |
|
|
|
|
|
| |
* fixes #22360; compare with the half of randMax
* add a test
|
|
|
|
|
|
|
| |
on` (#22355)
* fixes #22262; -d:useMalloc broken with --mm:none and threads on
* fixes
|
|
|
|
|
|
|
| |
param (#22337)
* fixes an issue where byref wasnt properly handled when using it in a generic param
* removes unreachable check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* implement `ensureMove`
* use an additional flag
* improve some logics
* progress: fixes discard ensureMove
* forbids nested expressions
* improve error messages
* checkpoint
* fixes cursor
* ADD MORE TESTS
* fixes cursorinference again
* tiny cleanup
* improve error messages
* fixes docs
* implement comments add more tests
* fixes js
|
|
|
|
|
| |
* [JS] Fix bitwise ops & shifts
* Test `int64` & `uint64` only with `jsbigint64`
|
|
|
|
|
| |
* [JS] Fix casting to ints
* Simplify `genCast` by using `asUintN`/`asIntN`
|
|
|
|
|
|
|
|
|
|
|
| |
discriminator with defaults (#22303)
* fixes #22301; rejects branch initialization with a runtime discriminator with defaults
* undefault nimPreviewRangeDefault
* fixes tests
* use oldCheckDefault
|
|
|
|
|
|
|
| |
* Expands codegenDecl to work in function params. fixes #22306
* makes the test more concrete so T{lit} params dont match
* adds sfCodegenDecl
|