Vindaar
eff0837ff4
fixes #12015 by also checking kind of typeNode ( #12016 )
...
* fixes #12015 by also checking kind of `typeNode`
If a tuple field is aliased it'll appear the same as a ref type in a
call to `getType` if only for the kind of the resulting `NimNode` is
checked (that is a `nnkBracketExpr`)
* fix test case due to #12017 and add more realistic test case
Adds an additional test case, which includes generics and is closer to
the real failure I encountered
* remove previous fix and fix differently after all
The previous fix was incomplete, because it failed for generics.
Note that the `of "tuple"` is not actually needed, the
`nnkBracketExpr` branch in the `else` branch would catch it too, but I
decided to introduce it for clarity. However, the latter is actually
needed, because it seems for aliases of `seq` we end up in it.
* update comment about global `%` proc in json test
2019-08-27 22:23:47 +02:00
Andreas Rumpf
00d46ca1c0
fixes #12024 ( #12065 )
2019-08-27 20:05:40 +02:00
Andreas Rumpf
114da04cbb
fixes #12029 ; finish the 'unused import' feature ( #12064 )
2019-08-27 19:18:56 +02:00
Artem V L
d8177a3980
Typos fixed, handleRefillChar() described ( #12062 )
2019-08-27 16:16:32 +02:00
Andreas Rumpf
8df745a42e
fixes #12056 ( #12063 )
2019-08-27 16:15:37 +02:00
narimiran
3f5599b344
disable testing of 'norm' package
2019-08-27 15:03:06 +02:00
Jacek Sieka
66a8856152
abort is noreturn ( #12061 )
2019-08-27 14:27:44 +02:00
Araq
1ccff0324c
manual: more precise rules about evaluation order
2019-08-27 12:13:06 +02:00
Araq
ddc155af64
fixes #12040
2019-08-27 10:20:12 +02:00
Andreas Rumpf
b044523c5a
fixes 9195 ( #12055 )
2019-08-27 10:07:42 +02:00
Andreas Rumpf
5a9edb222b
unicode.nim: fixed spacing to something sane
2019-08-26 23:30:35 +02:00
Andreas Rumpf
97d77bf37e
semtypes.nim: more refactorings for liftParamType
2019-08-26 23:30:35 +02:00
Andreas Rumpf
0c41fd0f50
semtypes.nim: little refactoring for liftParamType
2019-08-26 23:30:35 +02:00
Andreas Rumpf
d8d2a9e985
manual: better documentation for implicit generics
2019-08-26 23:30:35 +02:00
Dominik Picheta
8117a949c5
Remove old and unused parseBody/parseResponse procs in httpclient. ( #11949 )
2019-08-26 20:27:44 +02:00
Arne Döring
ae9bb4474b
fixes #12033 ( #12039 )
2019-08-26 20:14:21 +02:00
Palash Nigam
88814bbe98
fixes #11832 ( #12049 )
2019-08-26 20:13:41 +02:00
Andreas Rumpf
931ee0ca82
fixes #7258 ( #12054 )
2019-08-26 20:12:22 +02:00
Viktor Kirilov
5df7d72afe
HCR: tests for the fixes for #11608 and #11996 ( #12047 )
...
* tests for #11996 and #11608
* removed unnecessary comment
2019-08-26 20:08:18 +02:00
nc-x
73dd73f961
[ci skip] Add note to nimhcr.nim ( #12050 )
2019-08-26 19:20:24 +02:00
Andreas Rumpf
ce7f29e8e6
fixes #11833 ( #12018 )
2019-08-24 06:25:47 +02:00
Viktor Kirilov
f2e8c39e85
- adding _actual as a suffix only for calls to an actual proc and not through a global function pointer - fixes https://github.com/nim-lang/Nim/issues/11996 ( #12007 )
...
- adding forward declarations for reloadable functions within a module - fix compilation errors when 2 such functions reference each other - fixes https://github.com/nim-lang/Nim/issues/11608
- preserve permissions of copied executable binaries
2019-08-23 22:50:34 +02:00
Andreas Rumpf
547fcd69c3
rdstdin: remove cruft that shouldn't have been exported or added ( #12014 )
2019-08-23 21:34:22 +02:00
Andreas Rumpf
c3c5839329
Add build support for FreeBSD/PowerPC64 ( #12011 )
...
* Add build support for FreeBSD PowerPC64
* Add build support for FreeBSD PowerPC64
* Add build support for FreeBSD PowerPC64
2019-08-23 18:59:52 +02:00
Andreas Rumpf
fbb2763204
fixes #11958 ( #12013 )
2019-08-23 18:58:55 +02:00
Andreas Rumpf
b07694cd90
new gensym handling ( #11985 )
...
* new .gensym implementation
* make astspec test green again
* introduce a --useVersion switch to group compatibility switches
* fixes #10180
* fixes #11494
* fixes #11483
* object constructor fields and named parameters are also not gensym'ed
* disabled broken package
2019-08-23 16:15:02 +02:00
lenoil98
2212a90458
Add build support for FreeBSD PowerPC64
2019-08-23 07:56:56 -04:00
lenoil98
e1539c7344
Add build support for FreeBSD PowerPC64
2019-08-23 07:54:02 -04:00
lenoil98
806f3b592f
Add build support for FreeBSD PowerPC64
2019-08-23 07:50:50 -04:00
Palash Nigam
f28a47ea7b
fixes #11834 ( #12000 )
2019-08-23 07:42:33 +02:00
Andreas Rumpf
9aad99bdfd
closes #7117
2019-08-22 19:08:35 +02:00
Andreas Rumpf
085fbcea6f
fixes #10854
2019-08-22 18:57:41 +02:00
Andreas Rumpf
9eee15f668
thavlak: code style changes
2019-08-21 22:03:04 +02:00
Federico Ceratto
170cb4f4cb
Update OpenSSL example ( #11896 )
...
* Update OpenSSL example
Fix privkey filename.
Bump up RSA key size.
Add ECDSA example.
2019-08-21 20:01:17 +02:00
Timothee Cour
2b2efe3dbe
fix compiletimeFFI ( #11991 )
2019-08-21 09:28:16 +02:00
Arne Döring
5304b16a55
Fix typos. Apply title case. ( #11987 )
2019-08-21 00:04:01 +02:00
Oscar Nihlgård
4264e9576d
Consider range type of runtime discrim [feature] ( #11432 )
2019-08-20 17:39:49 +02:00
Andreas Rumpf
d00c8febee
Nimpretty: fix #11937 ( #11978 )
...
* cosmetic improvements
* remove unused imports
* make 'openPars' and 'closedPars' more readable
* nimpretty: fix #11937 (wrong indentation)
2019-08-20 16:03:04 +02:00
Araq
b1b0960c36
fixes #11972
2019-08-20 15:47:04 +02:00
Miran
75baaa5e25
nim check, fix #11927 , no more empty strings ( #11979 )
2019-08-19 22:25:21 +02:00
narimiran
ceb742351a
nimpretty: fix #11937 (wrong indentation)
2019-08-19 13:35:10 +02:00
narimiran
cf4390a24a
cosmetic improvements
...
* remove unused imports
* make 'openPars' and 'closedPars' more readable
2019-08-19 13:29:45 +02:00
Andreas Rumpf
742862b847
more enhancements for #11618 ( #11976 )
...
* finish the Windows IO layer changes; refs #11618
* added system.getOsFileHandle which is less error-prone on Windows
* make tests green again
2019-08-18 22:57:56 +02:00
nc-x
ac7a365137
Fix HCR crash because certain procs were hcrGetProc'ed before being hcrRegisterProc'ed ( #11971 )
2019-08-18 14:16:51 +02:00
nc-x
d5840e1e3d
Implement isExported for symbols in macros ( #11963 )
...
* Implement isExported for macros
* Reimplement isExported using VM callback mechanism
* VM does not support exceptions, use stacktrace() instead.
2019-08-18 11:51:28 +02:00
Andreas Rumpf
7cb31455ee
fixes #11618 ( #11969 )
2019-08-17 21:19:57 +02:00
nc-x
b68380f09b
fixes #11872 ; include now gives a proper error message for all invalid infix operators ( #11965 )
2019-08-17 19:45:47 +02:00
Andreas Rumpf
db9e27dffd
Fixes #11118 ( #11964 )
...
* fixes #11118
* Reset closure iter exception before rethrowing
2019-08-17 10:37:38 +02:00
nc-x
cf09ef47b8
Remove duplicate line number from 'invalid forward declaration' error ( #11966 )
2019-08-17 10:35:25 +02:00
Andreas Rumpf
15e681ce66
fixes 'e' command handling; now only does what advopt.txt claims it does ( #11961 )
...
* fixes 'e' command handling; now only does what advopt.txt claims it does
* address Timothee's remark
2019-08-16 18:19:30 +02:00