Neelesh Chandola
cbbdcb2669
Show deprecation warning for fields of a deprecated enum ( #10112 )
...
* Show deprecation warning for fields of a deprecated enum
* Add test
2018-12-30 09:45:39 +01:00
Neelesh Chandola
c5ad4c10cb
Deprecated pragma is now supported on enum fields ( #10113 )
...
* {.deprecated.} pragma is now supported for enum fields
* Add tests
* Simplify code
2018-12-30 09:43:59 +01:00
Timothee Cour
a6633b9658
fix typetraits.$ regression https://github.com/c-blake/cligen/issues/84 ( #10131 )
...
* fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84
* add test
2018-12-30 09:40:21 +01:00
Alexander Ivanov
aadbdd6b06
Support undefined in isNil ( #9960 )
2018-12-30 02:48:37 +01:00
Andreas Rumpf
062d7e3a39
fixes #10082
2018-12-30 02:45:43 +01:00
Neelesh Chandola
527b774772
{.push raises: [].} is now ignored for vars/lets/consts ( #10026 )
2018-12-30 01:28:56 +01:00
Timothee Cour
e98d54b050
nim dump: add nimcache entry ( #10122 )
2018-12-30 01:27:37 +01:00
Timothee Cour
9c65ea0d16
nim c now allows: when defined(c) (#10130 )
2018-12-30 01:21:33 +01:00
Timothee Cour
0831292863
revives: Move typetraits.$ to system. Fixes #5827 ( #10071 )
...
* Move typetraits.`$` to system. Fixes #5827 .
* revive PR; adjust code to make sure everything works and add tests
* fix tests/concepts/tstackconcept.nim
* address comments
2018-12-30 01:09:47 +01:00
Timothee Cour
1b7c8482fe
fixes #10101 ( #10103 )
2018-12-27 22:40:09 +01:00
Neelesh Chandola
05b8085a87
Pragma syntax is now consistent ( #9993 )
...
* Give deprecation warning when type pragmas do not follow the type name
* pragma before generic parameter list in type definition is now deprecated
* Update changelog
* Fix bug where deprecated warning was being shown even though no generic param list was present
* Fix bug
* Use errGenerated
* Best attempt at writing the grammar
2018-12-27 22:38:24 +01:00
Neelesh Chandola
65a52ecebb
Fix const tuple unpacking not working for variables > 2 ( #10099 )
2018-12-27 00:50:33 +01:00
alaviss
58d293d6a9
fixes nim-lang/nimsuggest#76 ( #10093 )
...
* nimsuggest: prevent out-of-bound access
* fixes nim-lang/nimsuggest#76
* undo tester changes
2018-12-25 21:08:16 +01:00
Araq
d407af565f
fixes #10024
2018-12-22 23:13:05 +01:00
Araq
bdb67201b2
fixes #10033 [backport]
2018-12-22 18:39:20 +01:00
Araq
237085db5d
C++ tests: make DLL test green
2018-12-21 22:03:41 +01:00
Araq
4a6d699bc5
C++: make async tests green on Windows
2018-12-21 22:03:41 +01:00
Timothee Cour
52e36a19a9
fix #9933 ( #10067 )
2018-12-21 12:29:45 +01:00
Araq
23448a96cc
fixes #10058 [backport]
2018-12-21 11:50:24 +01:00
Andreas Rumpf
2fd522cf58
use anon structs and unions for a much better debug experience ( #10055 )
2018-12-20 11:44:26 +01:00
rec
ca18dc2505
Make copies for params which are captured in closures. Fixes #7048 ( #10050 )
...
* Copy params which are captured in closures. Fixes #7048
* Forgot to emit a newline; minor adjustments to the test
2018-12-20 08:24:57 +01:00
Araq
c129107b32
make nimrtl.dll compile for the C++ target
2018-12-19 18:06:28 +01:00
Neelesh Chandola
730b1b2b87
proc does not take untyped/typed as argument ( #9981 )
...
* proc does not take untyped/typed as argument
* Add TODO
2018-12-19 16:18:57 +01:00
Andreas Rumpf
3300c8a500
much simpler implementation of constant tuple declarations
2018-12-19 11:11:33 +01:00
Neelesh Chandola
8e90ed0618
Const tuple unpacking ( #9964 )
...
* tuple unpacking is now supported for consts
* Move nkConstTuple to the end of TNodeKind
* Add nnkConstTuple in macros.nim
* Fix Formatting
2018-12-19 10:52:41 +01:00
Andreas Rumpf
3f917c8d91
Merge pull request #9959 from nc-x/better-error-message
...
Better error messages in enums which don't have ordinal types
2018-12-19 10:03:55 +01:00
Andreas Rumpf
72500420d3
Fixes #3060 and adds error checking for invalid else branches in object variants ( #9957 )
...
* Fix semRecordCase
* Fix ftpclient.nim
* Check for ordinal type
* Check tyRange for exhaustiveness
2018-12-19 10:03:22 +01:00
Neelesh Chandola
642ce799ec
Add support for clang-cl ( #9977 )
2018-12-19 09:35:25 +01:00
Neelesh Chandola
2acefee044
Nimsuggest now shows gotodef for y in from x import y ( #10023 )
2018-12-18 19:51:14 +01:00
Andreas Rumpf
d7d17d5ab0
see what breaks with a global config.nims ( #10016 )
...
* see what breaks with a global config.nims
* make tests green with a global config.nims file
2018-12-18 09:29:15 +01:00
Timothee Cour
dd5812546f
[pathutils] add AnyPath; add $; lift arbitrary API restrictions ( #10021 )
2018-12-18 09:28:26 +01:00
Timothee Cour
c4e3c4ca2d
add getCurrentCompilerExe to vmops (eg allows to get nim compiler at CT); add tests for vmops ( #9925 )
2018-12-18 09:07:12 +01:00
Araq
09b9a54418
make tests green with a global config.nims file
2018-12-17 23:03:54 +01:00
Andreas Rumpf
0409f2348e
Merge pull request #10012 from nc-x/header-path
...
Add project directory to include path
2018-12-16 20:51:41 +01:00
Araq
9526009e0e
fixes #9120
2018-12-16 20:34:07 +01:00
Araq
d91d1865b8
fixes #9420
2018-12-16 20:11:04 +01:00
Araq
d66eb04ce9
fixes #8991 , fixes #4446
2018-12-16 19:22:49 +01:00
Araq
bae662fa8a
restore the old .nims processing behaviour; fixes #9989 ; fixes #9995
2018-12-16 18:44:29 +01:00
Araq
6e5c2af203
fixes #9991
2018-12-16 18:01:59 +01:00
Neelesh Chandola
e70c6af188
escape the include path
2018-12-16 14:42:57 +05:30
Andreas Rumpf
20d9dd1ac6
Merge pull request #10003 from nc-x/fix-enum-internal-error
...
Fix internal error when casting to invalid enum value
2018-12-16 09:15:56 +01:00
Neelesh Chandola
c99407b07a
Add project directory to include path
2018-12-16 11:39:29 +05:30
recloser
19f5835d5c
Fixes #10005
2018-12-15 22:57:18 +01:00
Neelesh Chandola
c673607d36
Fix internal error when casting to invalid enum value
2018-12-15 22:19:39 +05:30
Andreas Rumpf
b53327c92a
fixes #9994
2018-12-15 14:30:21 +01:00
Andreas Rumpf
a87be40339
fixes #9985
2018-12-15 14:09:06 +01:00
Andreas Rumpf
39ae55e6e4
fixes #9995
2018-12-15 14:01:18 +01:00
Andreas Rumpf
e3a668a33b
--gc:destructors: baby steps
2018-12-15 13:54:41 +01:00
Andreas Rumpf
446f911a17
better error message for 'proc' that is not intended to be used as a typeclass
2018-12-15 09:09:46 +01:00
Andreas Rumpf
f76bd06643
fixes #9982
2018-12-14 20:03:12 +01:00