Ray Imber
94f6a6b294
Fix for issue #10342 . better message for generic subclass instantiation ( #10354 )
...
* Fix for issue #10342 . better message for generic subclass instantiation errors.
2019-01-22 17:05:26 -08:00
Miran
0ebfcd4c0f
Remove deprecated modules (asyncio, sockets, ftpclient) ( #10401 )
2019-01-22 16:06:44 +01: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
Neelesh Chandola
226c15499f
Fix compileTime pragma applying to whole var/let section ( #10389 )
2019-01-22 07:55:11 +01:00
LemonBoy
44c04b3571
Object downconversion in VM should not copy ( #10378 )
...
Hopefully the type-check phase already rejected all the invalid
conversions by the time we execute the VM bytecode.
Problem reported by chrisheller on the Nim Forum
2019-01-22 07:36:40 +01:00
LemonBoy
3ea099bc7f
Finalizer proc must be global ( #10388 )
...
Fixes #10376
2019-01-22 07:35:52 +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
LemonBoy
ae5d8fbd9d
Proper check for tyStatic[T] -> U conversions ( #10382 )
...
Drop the outer tyStatic shell then perform the check.
Fixes #7609
2019-01-21 17:27:36 +01:00
Oscar Nihlgård
a4cdd25b19
Support system.reset in vm ( #10400 )
2019-01-21 17:00:33 +01:00
Oscar Nihlgård
9a003bae06
Fix error lexer error messages for to large numbers ( #10394 )
2019-01-21 15:14:38 +01:00
Federico Ceratto
095eaacf21
Fix spelling errors ( #10379 )
2019-01-19 16:01:27 +01:00
Andreas Rumpf
2371b4be96
ported havlak and gcbench benchmarks to work with --gc:regions
2019-01-19 12:48:39 +01:00
Andreas Rumpf
9985706fb8
GC tests: make them take less time to save CI cycles
2019-01-19 12:48:39 +01:00
Ico Doornekamp
f11f36e7d5
Fixed getCustomPragmaVal to allow multiple fields in custom annotations ( #10289 )
2019-01-18 09:04:12 +01:00
Timothee Cour
27e2ed4375
fix #9629 every binary cmd line option allows on/off/empty=on ( #10353 )
...
* fix #9629 every binary cmd line option allows on/off/empty=on
* workaround refs #10359
2019-01-18 09:03:26 +01:00
cooldome
1e63f1edb3
destructors: first step towards fixing #9617 ( #10341 )
2019-01-18 08:51:22 +01:00
Miran
214f48eae9
Remove long deprecated stuff ( #10332 )
2019-01-18 07:18:32 +01:00
Timothee Cour
42bac52426
[CI] now enables NIM_COMPILE_TO_CPP=true to run without allow_failures ( #10315 )
...
* better fix for `nim cpp` bootstrap error: error: no member named raise_id
* [CI] now enables runs NIM_COMPILE_TO_CPP=true without allow_failures
* workaround refs #10343
2019-01-17 08:00:44 +01:00
LemonBoy
15584879b9
Properly wrap discarded statements ( #10322 )
...
Failing to do so lead the codegen to emit invalid code sometimes,
especially when C++ references were involved.
Fixes #10241
2019-01-17 07:55:29 +01:00
Araq
8947779dd0
disable one more test for C++
2019-01-16 21:19:51 +01:00
Miran
b48364694d
Merge pull request #10318 (Better docs for four modules)
2019-01-16 11:48:37 +01:00
Timothee Cour
b8454327c5
json: support tuple ( #10010 )
2019-01-16 10:16:14 +01:00
narimiran
be6456f0f4
better docs: strutils
2019-01-16 09:45:51 +01:00
narimiran
b097081f10
better docs: sequtils
2019-01-16 09:45:27 +01:00
Timothee Cour
fbd6743ea1
fix sdl_test test that failed in CI cpp mode ( #10314 )
...
* fix sdl_test test that failed in CI cpp mode
* preserve old code for NimInAction in `nim c` mode
2019-01-15 15:17:52 -08:00
Timothee Cour
795e5e11ef
parseopt2.cmdLineRest is now correct too ( #10304 )
2019-01-15 21:51:02 +01:00
Timothee Cour
4355f23ee5
fix #10305 nim cpp is now nan-correct at CT ( #10310 )
...
* fix #10305 nim cpp is now nan-correct at CT
* add example where simply `nim cpp -d:release` would exhibit nan bug
2019-01-15 14:50:28 +01:00
Timothee Cour
c05e9c7c73
fix twrong_refcounts in nim cpp mode ( #10313 )
2019-01-15 14:46:01 +01:00
Andreas Rumpf
05c52ff34f
fixes #10203 ( #10290 )
...
* fixes #10203
* make typredef test green again
* fixes the regressions differently
2019-01-15 10:15:27 +01:00
Andreas Rumpf
06a8b48811
disable one more test for C++
2019-01-15 10:02:09 +01:00
Neelesh Chandola
8922063bd8
typed/untyped return type is invalid for everything except templates and macros ( #10275 )
2019-01-15 08:08:12 +01:00
Timothee Cour
9e68b2ce5d
fix test
2019-01-14 17:00:54 -08:00
Timothee Cour
0a8762eb7b
fix #9842 #9951 : nim -r and parseopt.cmdLineRest are now correct
2019-01-14 17:00:54 -08:00
Timothee Cour
e17321aa24
improve formatting in assertEquals
2019-01-14 17:00:54 -08:00
Andreas Rumpf
1899d8d107
make tests green again
2019-01-14 20:11:33 +01:00
Arne Döring
b78af990b8
Fixes #10065 ( #10260 )
...
CountTable now returns 0 instead of 'key not found' for get requests.
2019-01-14 17:16:17 +01:00
Araq
d69a7842fa
fixes #7878
2019-01-14 12:36:34 +01:00
Araq
825e08b046
fixes #7524
2019-01-14 12:15:40 +01:00
Araq
3c2d82eaae
make megatest green
2019-01-13 17:19:36 +01:00
Araq
2ccc9db59d
closes #3744
2019-01-13 16:05:42 +01:00
Araq
aa7ad88978
fixes #10075 [backport]
2019-01-13 15:52:50 +01:00
Araq
796432ff94
make tests more robust; tests should be deterministic, no randomize() calls in tests
2019-01-13 13:54:44 +01:00
Timothee Cour
9af85fb69f
fixes #10273 execShellCmd now returns nonzero when child killed with signal + other fixes ( #10274 )
...
* s/exitStatus(...)/exitStatusLikeShell(...)/
* fix #10273 execShellCmd now returns nonzero when child exits with signal
* test case for #10249 and explanation for the bug
* fix test failure
* add tests/nim.cfg
2019-01-13 09:00:39 +01:00
rec
f5cc2e2de5
Fixes 10202 ( #10283 )
...
* Add a test case for #10202
* Fix asgn for object tyVars; fixes #10202
* Check the variant kind before accessing the sym field
2019-01-12 19:49:31 +01:00
Neelesh Chandola
d998cb58dd
void object fields are now ignored by codegen and fields/fieldPairs iterator ( #10144 )
...
* Codegen now ignores object fields of type void
* Fix `$` bug for objects/tuples where it does not add a comma
* fields/fieldPairs iterators now ignore void types
* Use `isEmptyType` instead of checking for `tyVoid` directly
2019-01-10 12:49:35 +01:00
Miran
6389271d1c
Merge pull request #10248 from narimiran/graveyard
...
Move four modules to graveyard
2019-01-10 11:17:06 +01:00
cooldome
44b4e289d6
destructors: lift type bound operations for case and distinct objects ( #10238 )
2019-01-10 09:25:35 +01:00
narimiran
8d9b093440
remove scgi
2019-01-10 09:17:12 +01:00
narimiran
da57c0ab99
remove subexes
2019-01-10 09:17:12 +01:00
Timothee Cour
23c1ee982e
add alignTable, parseTableCells to align/format a tab(etc) delimited table ( #10182 )
...
* add compiler/unittest_light.nim for easy diffing: assertEquals and mismatch
* fixup
* add alignTable, parseTableCells
2019-01-09 09:46:44 +01:00