metagn
1bb117cd7a
proc typeclass accounts for iterator, call conventions + nil fix + document typeclass AST (#21629 )
...
* test fix #16546 #16548 + another issue
* please don't tell me other packages do this
* fix CI + test typeclass callconv pragma
* better logic in parser
* docs and changelog
2023-04-11 09:23:41 +02:00
ringabout
fc7385bfda
fixes #21360 ; discarding empty seqs/arrays now raises errors ( #21374 )
...
* discarding empty seqs now raises errors
* the same goes for sets
2023-02-16 10:23:35 +08:00
ringabout
51f410e1d5
megatest now checks refc too ( #21341 )
...
* megatest now checks refc too
* fixes refc
2023-02-09 16:14:39 -05:00
Bung
b68b28fd24
fix typeRel of typeDesc ( #21227 )
2023-01-09 07:34:51 +01:00
ringabout
9ba07edb2e
build the documentation of official packages ( #20986 )
...
* remove db stuffs
* remove punycode
* remove
* fixes script
* add cloner
* patches
* disable
* patch
* fixes external packages
* disable two packages
* preview documentation build
* try again
* fixes URL
* fixes a bug
* simplify
* fixes documentaion
* fixes
* Apply suggestions from code review
2022-12-06 22:37:16 +08:00
metagn
4ca2dcb404
Named arguments in commands + many grammar fixes ( #20994 )
...
* Breaking parser changes, implement https://github.com/nim-lang/RFCs/issues/442
Types are separated from expressions and better reflected in the grammar.
* add test
* more accurate grammar
* fix keyword typedescs
* accept expressions in proc argument lists
* CI "fixes"
* fixes
* allow full ref expressions again, adapt old tests
* cleanup, fix some tests
* improve grammar, try and revert semtypes change
* restrict sigil binding to identOrLiteral
* fix, should have caught this immediately
* add changelog entry, fix double not nil bug
* correct grammar
* change section
* fix
* real fix hopefully
* fix test
* support LL(1) for tuples
* make grammar.txt too
2022-12-06 13:11:56 +01:00
ringabout
117a19d032
closes #13618 ; add testcase ( #20734 )
2022-11-02 19:25:51 +08:00
ringabout
7739e23420
defaults to ORC ( #19972 )
...
* defaults to Orc
* bootstrap using refc
* use gc
* init orc defines
* unregister orc
* fix gc
* fix commands
* add prepareMutation for orc
* enable deepcopy for orc
* prepareMutation
* more fixes
* some cases
* bug #20081
* partial fixes
* partial fixes
* fixes command line
* more fixes
* build Nim with refc
* use gc
* more fixes
* rstore
* orc doesn't support threadpool
* more shallowCopy
* more fixes
* fixes unsafeNew
* workarounds
* small
* more fixes
* fixes some megatest
* tcodegenbugs1 refc
* fxies megatest
* build nimble with refc
* workaround tensordsl tests
* replace shallowCopy with move
* fixes action
* workaround
* add todo
* fixes important packages
* unpublic unregisterArcOrc
* fixes cpp
* enable windows
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-09-23 13:05:05 +02:00
metagn
86f7f4ffa5
remove deprecated type pragma syntax, fix bugs that required it ( #20199 )
...
* remove deprecated pragma syntax from 0.20.0
closes #4651 , closes #16653 with a cheap fix for now due to
how early `tfFinal` is set
* remove type pragma between name and generics
* undo removal, try removing bind expression (0.8.14)
* fix test, unremove bind expr
* remove again
* Update changelog.md
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* dependencies @ HEAD & weave test dependencies
* try fix package ci
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-09-03 09:52:13 +02:00
flywind
9df195ef58
style usages part one (openarray => openArray) ( #19321 )
...
* style usages (openArray)
* revert doc changes
2022-01-04 13:29:50 +01:00
Timothee Cour
78e2d299df
typo: nonexistant => nonexistent ( #17918 )
...
* typo: nonexistant => nonexistent
* fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910 )
2021-05-02 00:26:41 +02:00
Timothee Cour
2abc936d51
typeof(voidStmt) now works (#17807 )
...
* `typeof(voidStmt)` now works
* remove typeOrVoid
* add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193
* fixup
* changelog [skip ci]
* fixup
2021-04-23 14:36:38 +02:00
Timothee Cour
e40ff24c23
typeToString: type float => typedesc[float] ( #17011 )
...
* typeToString: type float => typedesc[float]
* fixup
* fix tests
2021-02-12 17:10:20 +01:00
Clyybber
f2b041f168
Reenable a few tests
2020-07-14 19:50:42 +02:00
Neelesh Chandola
4c08e64e98
disallow typedesc in arrays & move existing checks to types.typeAllowedAux ( #13261 )
...
* disallow typedesc in arrays and move previous checks to types.typeAllowedAux
2020-05-29 11:48:15 +02:00
Jacek Sieka
7d6cbf290a
Error -> Defect for defects ( #13908 )
...
* Error -> Defect for defects
The distinction between Error and Defect is subjective,
context-dependent and somewhat arbitrary, so when looking at an
exception, it's hard to guess what it is - this happens often when
looking at a `raises` list _without_ opening the corresponding
definition and digging through layers of inheritance.
With the help of a little consistency in naming, it's at least possible
to start disentangling the two error types and the standard lib can set
a good example here.
2020-04-28 19:56:01 +02:00
Timothee Cour
b80d70b0f3
fix tests
2019-07-08 15:24:20 -07:00
narimiran
3b73da310c
close #9961 by adding a test
2019-05-30 12:34:27 +02:00
LemonBoy
6825430831
Restrict ptr/ref to ptr/ref implicit conversion ( #10411 )
...
* Restrict ptr/ref to ptr/ref implicit conversion
Fixes #10409
* Make the ptr conversions explicit in db_odbc
2019-01-22 11:17:20 +01:00
LemonBoy
ee89ba6bdb
Fix subtype conversion w/ varargs arguments ( #10402 )
...
The type matching is done on the `T` of the `varargs[T]` so the
conversion must be performed to `T` and not to the whole type.
This problem is only noticeable with the cpp backend since C doesn't
give a damn shit about your fucking (wrong) types.
Fixes #9845
2019-01-21 19:12:17 +01:00
Arne Döring
a5ecbf823f
lots of small changes
2018-12-11 21:23:22 +01:00
Arne Döring
3859878db8
megatest checks output and nimout
2018-12-11 21:23:22 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Araq
562d185cb7
cleanup tests; don't use non-working 'msg' spec field
2018-11-23 13:16:45 +01:00
Arne Döring
e012eb1001
updated tests to be executed
2018-11-23 11:58:28 +01:00
Miran
749dbce4c6
Merge tests into a larger file (part 5 of ∞) ( #9368 )
...
* merge magics
* merge metatype tests
* merge method tests
* merge objects tests
* change `import future` to `import sugar`
Nim in Action tests are left with `import future`, to ensure compatibility.
* merge overload tests
* merge proc tests
* merge procvar tests
* merge range tests
* merge seq tests
* merge sets tests
* remove wrong assert from `tsets3`
* fix `jsTests`
* better fix
2018-10-16 10:50:10 +02:00
LemonBoy
e69d8ec416
Fix type comparison in semConv ( #8907 )
...
Fixes #8905
2018-09-07 21:06:30 +02:00
LemonBoy
88714e77d8
Fix comparison of tyGenericBody in typerel ( #8045 )
...
As shown in #7734 and #7733 the logic in typerel fails to determine that
`type Foo` and `type Foo` are indeed equal.
Fixes #7734
2018-07-07 20:49:06 +02:00
LemonBoy
ab47a870bc
Error out if vararg match isn't an exact one ( #8186 )
...
Fixes #8172
2018-07-03 15:10:12 +02:00
andri lim
4262a85653
fixed wrong test
2018-06-06 22:29:31 +07:00
andri lim
436c122956
combine/reduce test
2018-06-05 22:16:53 +07:00
andri lim
8063ecbb8f
fix test case output
2018-06-05 16:54:01 +07:00
andri lim
80107b360c
add more test to 4799
2018-06-05 09:18:20 +07:00
Andreas Rumpf
d8fde9daba
make tests green
2018-05-05 21:45:07 +02:00
Oscar Nihlgård
cc0ca43743
Don't hide overflow/underflow/divbyzero in semfold ( #7732 )
...
* firstOrd/lastOrd bugfix
* Don't hide overflow/underflow/divbyzero in semfold
2018-05-02 08:54:09 +02:00
andri lim
e4aa140d22
fixes #7600 , generic object with generic ref object parent typerel bug ( #7678 )
...
* fixes #7600
* fix wrong logic
2018-04-27 08:53:20 +02:00
Araq
ef6eda4cb4
better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types
2018-02-10 20:55:21 +01:00
Fabian Keller
6df6ec27ec
Improved collection-to-string behavior ( #6825 )
2017-12-14 14:02:13 +01:00
Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
Zahary Karadjov
7db883e4d3
make some tests green again
2017-06-20 11:29:42 +02:00
Andreas Rumpf
eafa65fc64
real world examples compile
2016-12-06 15:37:09 +01:00
Araq
1c20046f28
sighashes: make more tests green
2016-11-29 10:37:32 +01:00
Andreas Rumpf
dc4b2c920c
fixes #4328
2016-07-19 19:27:38 +02:00
Andreas Rumpf
d779a9b722
fixes #4478
2016-07-18 12:16:54 +02:00
Andreas Rumpf
b47d9b7b91
fixes #4371
2016-07-08 10:34:12 +02:00
Andreas Rumpf
eae30d1961
fixes #950
2016-05-12 00:38:15 +02:00
Andreas Rumpf
dd613adcfe
made tests green again
2016-03-29 21:44:42 +02:00
Andreas Rumpf
c9966a3e17
use 'using' instead of 'sig' keyword; cleans up new features a bit
2016-02-29 12:19:54 +01:00
def
c50b5b62ef
Fix a few deprecation warnings
2016-01-25 19:10:37 +01:00
Araq
36f68e1650
fixes #3329
2015-09-18 02:24:12 +02:00