Commit graph

542 commits

Author SHA1 Message Date
zah
a20a8e6adb fixes #4756 (#5557) 2017-03-17 17:11:37 +01:00
zah
650b20dc5e fix varargs forwarding for templates; fixes #5455 (#5505)
* fix varargs forwarding for templates; fixes #5455
* document the macros' varargs change in the news for 0.16.2
2017-03-13 22:02:11 +01:00
zah
1be0022e7c Fixes #5167 and related problems (#5475)
This commit returns to a bit less strict checking of the number
of macro arguments, because some old immediate macros rely on a
behavior where even the arity of the macro is not being checked.

It may be better if such macros are just declared to use varargs[expr],
but this remains for another day.
2017-03-12 09:33:49 +01:00
Andreas Rumpf
46efaf294b big compiler refactoring; avoid globals for multi method dispatcher generation 2017-02-22 16:27:52 +01:00
Andreas Rumpf
ba29ca0c63 Merge branch 'devel' into faster-nimsuggest 2017-02-17 10:48:01 +01:00
Araq
0440aea691 fixes #5405 2017-02-16 21:30:54 +01:00
Andreas Rumpf
443a46b40d improve error message for mismatched proc types 2017-02-10 20:39:37 +01:00
Zahary Karadjov
28005cf02d alternative fix for #4884; fixes tlateboundstatic 2017-01-11 00:44:52 +02:00
Zahary Karadjov
bf612a7f19 fix #4884 2017-01-08 23:24:27 +02:00
Andreas Rumpf
e1828733f1 fixes #4519 2016-12-25 15:26:32 +01:00
Araq
237252f90c Merge branch 'devel' into sighashes 2016-12-19 11:35:45 +01:00
Araq
bda8a6c1b7 fixes nimsuggest issue #41 2016-12-18 00:03:47 +01:00
Araq
e6c5622aa7 removed tyArrayConstr completely from the compiler; introduced tyAlias instead in preparation for further bugfixes 2016-11-14 23:18:30 +01:00
Jacek Sieka
6f7b891bdc remove remnants of tyIter 2016-10-24 21:10:48 +08:00
Andreas Rumpf
d0ec83eaa8 fixes #4863 2016-10-19 19:28:27 +02:00
Araq
7906527297 failed attempt to fix a 'void' inference bug 2016-10-08 10:47:47 +02:00
Andreas Rumpf
b78029b5af fixes #4626 2016-09-13 16:33:43 +02:00
Andreas Rumpf
3a13706d7d fixes #4673 2016-09-01 13:02:53 +02:00
Andreas Rumpf
f6a2ff731b fixes #4672 2016-09-01 13:02:53 +02:00
Andreas Rumpf
be4748eb57 do not crash on #3928 2016-08-26 14:57:59 +02:00
Andreas Rumpf
98859a7248 fixes #4292 2016-08-26 14:36:46 +02:00
Andreas Rumpf
636e74fe39 overloading resolution: scoping is considered after typing (needs to be documented) 2016-08-24 11:27:14 +02:00
Andreas Rumpf
57b8664a0c fixes #4589 2016-08-10 11:14:02 +02:00
Andreas Rumpf
09f122f68c fixes #4528 2016-08-08 18:03:52 +02:00
Hans Raaf
e2e4df1702 Allowing nil for distinct types where the base type is nilable 2016-08-05 16:01:16 +02:00
Andreas Rumpf
7ac0b20339 fixes #4545 2016-08-04 01:37:41 +02:00
Andreas Rumpf
4d5c0027e6 fixes #4537 2016-08-02 14:53:21 +02:00
Andreas Rumpf
39ebe2175b compiler almost free of deprecated expr/stmt names 2016-07-30 16:34:42 +02:00
Andreas Rumpf
60b187513e stdlib and compiler don't use .immediate anymore 2016-07-29 23:51:01 +02:00
Andreas Rumpf
f5fa5dae85 generic multi-methods should work now 2016-07-28 20:23:24 +02:00
Andreas Rumpf
be22071b2e fixes a varargs of untyped regression 2016-07-24 21:37:59 +02:00
Andreas Rumpf
d4573f1762 fixes #888 2016-07-19 20:19:52 +02:00
Andreas Rumpf
dc4b2c920c fixes #4328 2016-07-19 19:27:38 +02:00
Andreas Rumpf
267855f9fb make tests green again 2016-07-18 14:57:22 +02:00
Andreas Rumpf
d779a9b722 fixes #4478 2016-07-18 12:16:54 +02:00
Andreas Rumpf
995727ffd0 decent error message for 'var T' problems 2016-07-15 00:22:14 +02:00
Kier Davis
56015e52b9 Fix #4475
Existing implementation would append the default value for a varargs parameter (the empty array) to the end of the sons of the
nnkCall node, rather than storing it into the correct index. This left the location where it should have been stored set to
its default value of nil, causing later code that uses this node to segfault.
2016-07-11 14:53:39 +01:00
Andreas Rumpf
b47d9b7b91 fixes #4371 2016-07-08 10:34:12 +02:00
Anatoly Galiulin
bef7f72636 Accumulate penalties 2016-06-27 09:16:19 +06:00
Anatoly Galiulin
75cca15c65 Speedup generic relations detection 2016-06-24 15:22:22 +06:00
Anatoly Galiulin
764668d099 Fix generics inheritance issues 2016-06-23 18:37:14 +06:00
Andreas Rumpf
1d44fee399 hotfix: don't crash for wrong template calls 2016-06-03 23:07:07 +02:00
Andreas Rumpf
6ff66bfd51 improve error messages for mismatched templates involving 'untyped' and stmts 2016-05-27 19:18:08 +02:00
Araq
875132bf46 fixes a varargs[untyped] bug that kept strscans from compiling 2016-05-10 22:03:07 +02:00
Andreas Rumpf
f348671ba7 fixes #3544 2016-04-30 01:12:36 +02:00
Andreas Rumpf
af70254c7b fixes #2006 2016-04-04 16:41:35 +02:00
Andreas Rumpf
0378f9980f fixed regressions 2016-03-29 12:19:49 +02:00
Andreas Rumpf
e97d640ce8 fixes #3998 2016-03-28 02:26:38 +02:00
Andreas Rumpf
00c4861208 fixes #3836 2016-03-04 22:18:58 +01:00
Andreas Rumpf
312281c7cc fixes #3686 2016-03-01 23:07:22 +01:00