flywind
086efac49b
fix #6608 ( #14963 )
...
* fix #6608
2020-07-14 09:22:48 +02:00
Timothee Cour
a6cbe58e8c
typetraits.$: $((int, float), int) is now "((int, float), int)" instead of "(tuple of (int, float), int)" ( #14812 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-07-02 16:19:43 +02:00
cooldome
e5b64af831
Implement rendering of []=, {}, {}= braces ( #14539 )
...
* render curly braces
* fix typo
* fix test
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-06-01 19:56:17 +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
Araq
7f1d2489ad
improve the 'has to be discarded' error message
2020-05-02 22:31:19 +02:00
Andreas Rumpf
73eff1f457
fixes #12741 ( #14005 )
...
* fixes #12741
* updated tests
2020-04-19 11:59:01 +02:00
Arne Döring
64ffa17f0f
fixes #13715 ( #13716 )
...
* fixes #13715
* fix test
2020-03-22 20:01:01 +01:00
Timothee Cour
dd362ab4c0
fix #13538 sigmatch errors are now sorted ( #13701 )
...
* fix #13538 sigmatch now sorted and has reliable order
* re-enable tests that were disabled because of that bug
* fix remaining tests and un-disable 2 other tests that were affected by this bug
2020-03-20 09:28:03 +01:00
Andreas Rumpf
83e715c5b6
fixes #5170 ( #13589 )
...
* fixes #5170
* make tests green
2020-03-05 16:02:34 +01:00
Timothee Cour
eec07b4e84
fix several bugs with repr ( #13386 )
2020-02-11 21:33:06 +01:00
Timothee Cour
e4415422fe
Revert "printing float values will have one more digit. ( #13276 ) [backport]" ( #13363 )
...
This reverts commit b2c6db97f9 .
2020-02-08 09:30:24 +01:00
Arne Döring
b2c6db97f9
printing float values will have one more digit. ( #13276 ) [backport]
...
* printing float values will have one more digit. Fixes #13196
2020-02-07 17:10:25 +01:00
Timothee Cour
79ec8c2571
fix #13182 : proc fun(a: varargs[Foo, conv]) now can be overloaded ( #13345 ) [backport]
2020-02-07 13:29:18 +01:00
Neelesh Chandola
7ebb2baa6c
Assigning template to var/let/const gives a proper error ( #12851 )
...
* Assigning template to var/let/const gives a proper error
* Fix style
2019-12-09 08:19:40 +00:00
narimiran
0d00bde4ea
fix failing test
2019-11-07 11:04:41 +01:00
Arne Döring
7cf3395d85
refactor illegal iterator assignment detection ( #12212 )
...
* refactor illegal iterator assignment detection
* delete crappy test
2019-10-11 08:43:58 +02:00
Jasper Jenkins
245a954b25
ungeneric unsigned ops ( #12230 )
...
* ungenericise unsigned ops, remove nimNewShiftOps
* fix/remove tests
* update t6448
* fix line info
* disable on 32bit
* fix different line info
* add changelog entry
2019-10-11 08:38:08 +02:00
Jasper Jenkins
e5139b0662
error for NimNode index kind ( #12154 )
2019-09-08 20:31:22 +02:00
Timothee Cour
9ae0dd611f
typeToString can now show (recursively) resolved type aliases; fixes #8569 #8083 #8570 ( #11678 )
...
* nested typeToString
* typeToString: preferResolved
* add test
* fix test
* preferMixed
* fix tests
2019-08-31 08:26:45 +02:00
Andreas Rumpf
9203d3a982
fixes 5870 ( #11704 )
...
* fixes #5870
* make tclosure test green again
* this check is correct but breaks some Nimble packages
2019-08-29 07:49:58 +02:00
Andreas Rumpf
ce7f29e8e6
fixes #11833 ( #12018 )
2019-08-24 06:25:47 +02:00
Arne Döring
65ed2d7fe8
fixes #11942 ( #11945 )
2019-08-14 17:41:44 +02:00
Arne Döring
ce148e71ef
disallow static in return type ( #9686 ) [nobackport]
2019-08-06 01:26:53 +02:00
Andreas Rumpf
e11494f1cf
Merge pull request #11680 from timotheecour/pr_fix_sigmatch_errmsg
...
fixes #8305 ; fixes #7808 ; fixes #10285 ; fixes #11061 + other bugs with type mismatch error msgs
2019-07-17 16:01:44 +02:00
Araq
fa982b43f0
make tests green again
2019-07-09 13:29:16 +02:00
Timothee Cour
063ae96a66
address comments
2019-07-08 15:24:20 -07:00
Timothee Cour
5ddea6a98f
add tests for #8305 #7808 #10285 #11061 + other bugs
2019-07-08 15:24:20 -07:00
Timothee Cour
6375df4c53
make tests/concepts/t3330.nim disabled again: the order of candidates is machine dependent
2019-07-08 15:24:20 -07:00
Timothee Cour
b80d70b0f3
fix tests
2019-07-08 15:24:20 -07:00
Arne Döring
20d0ef8afb
[backport] fix #11320 ( #11538 )
...
* [backport] fix #11320
* fix test for 32 bit test
2019-07-03 08:00:40 +02:00
Andreas Rumpf
766960dc15
fixes #11515 ( #11624 )
...
* fixes #11515
* better fix for #11515 ; make tests green
2019-07-01 18:08:50 +02:00
Arne Döring
c7e1c665a1
[refactoring] refactor the compiler and stdlib to deprecation warnings ( #11419 )
2019-06-11 16:49:56 +02:00
alaviss
1d00f7f9d7
travis: cleanup & add 32-bit Linux testing ( #11337 )
2019-05-30 07:34:54 +02:00
Arne Döring
2339542832
Tuple error message ( #11141 ); fixes #3211
2019-05-15 17:59:06 +02:00
Arne Döring
34405db80f
forbid casting to bare unchecked array ( #11186 )
...
* fixes #11180 , forbid casting to unchecked array.
* allow UncheckedArray as param
2019-05-08 09:36:27 +02:00
Jasper Jenkins
6e4ea40475
empty container param error msg ( #11158 )
2019-05-04 23:28:09 +02:00
Arne Döring
3794338aba
Lineinfo fix ( #10871 )
2019-03-21 06:54:42 +01:00
Miran
2b5e48d807
move assertions and iterators out of system.nim ( #10597 )
...
* move assertions and iterators out of system.nim
* limit nimsuggest tests to the first 3 suggestions
2019-03-07 00:49:39 +01:00
Andreas Rumpf
84f0a33bf0
make typeToString sane for sequence again
2019-02-25 19:01:01 +01:00
LemonBoy
e89aaaeaab
Open a new scope for static: expr blocks ( #10649 )
...
Bring this in line with how plain blocks are analysed and avoids codegen
errors if one references variables defined in such a block.
2019-02-23 12:05:07 +01:00
Arne Döring
6b9a139f7f
error message for accidental use of macro ( #10490 )
...
* error message for accidental use of macro
2019-02-19 12:21:42 +01:00
Arne Döring
28394153ab
32 bit fixes ( #10608 )
2019-02-13 23:30:14 +01:00
Araq
4ed7507cb2
error messages can have spaces, don't be dyslexic
2019-02-08 12:18:42 +01:00
LemonBoy
6b88ce3384
Stop useless suggestion of unsafeAddr ( #10598 )
...
Fixes #10594
2019-02-08 08:59:38 +01:00
Timothee Cour
4d230db5ab
closes #8610 ; adds test case ( #10454 )
2019-01-25 19:28:03 +01:00
LemonBoy
3ea099bc7f
Finalizer proc must be global ( #10388 )
...
Fixes #10376
2019-01-22 07:35:52 +01:00
Oscar Nihlgård
9a003bae06
Fix error lexer error messages for to large numbers ( #10394 )
2019-01-21 15:14:38 +01:00
narimiran
be6456f0f4
better docs: strutils
2019-01-16 09:45:51 +01:00
Timothee Cour
6ce3949c8a
add isNamedTuple; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) which leaked implementation detail ( #10070 )
...
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2)
fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim
* Note: isNamedTuple is useful in other places, eg #10010 (comment)
* move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim
* remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
2019-01-08 18:37:25 -08:00
Timothee Cour
bf3a308e86
[error messages, stacktraces] fix #8794 #9270 #9767 #9768 ( #9766 )
...
* fixes #8794 : `Error: undeclared field: 'foo'` should show type (+ where type is defined) (hard to guess in generic code)
* fixes #9270 : `--listFullPaths` not honored by `declared in foo.nim` messages
* fixes #9767 : VM stacktrace doesn't honor --excessiveStackTrace:on
* fixes #9768 : VM stacktrace misses column info, can lead to ambiguous or harder to read stacktraces
* refactors some col+1 code to col + ColOffset (self documents code)
* make getProcHeader show declared info location also for types and all routine kinds (including macros,templates) instead of just (rather arbitrarily) for iterator,proc,func,method
* --listFullPaths now is honored in more places
* fix typo system/except.nim => lib/system/excpt.nim
* remove substr(foo, 0) hack in compiler/vm.nim which seems old and not applicable anymore
2019-01-08 15:58:47 -08:00