zah
cbd059aa85
Fix #6415 ( #7281 )
...
* hangle static generic params when used in the importcpp pragma
* importcpp works for generic types with fields; fixes #6415
* revert a too agressive safety check that ended up breaking the tests
2018-03-08 15:10:45 +01:00
cooldome
63c28b973e
Allow only single infix as in except branches. Fixes #7115 ( #7132 )
2018-03-08 10:56:32 +01:00
Andreas Rumpf
eeea000582
make the 'canimport' template work
2018-03-06 15:57:46 +01:00
cooldome
4790b6d63f
Fixes 7283 ( #7284 )
2018-03-05 19:06:47 +01:00
cooldome
4164ec4f8b
Fixes #6837 ( #7271 )
2018-03-02 12:14:41 +01:00
Araq
934bba5255
some progress on #7261 ; VM does not support the new backwards indexing
2018-02-28 10:13:55 +01:00
cooldome
0a8684db4c
User pragmas hide effect specs bug fix. Fixes #7216 ( #7217 )
2018-02-27 03:03:49 +01:00
Andreas Rumpf
d81568fcd5
make concept tests green again
2018-02-27 02:18:18 +01:00
Araq
c3d544221b
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-02-26 20:48:23 +01:00
Araq
ac6d9a3079
symbol files: baby steps to a working solution
2018-02-26 17:39:19 +01:00
Andreas Rumpf
27e32e0a7d
improve the error message for #4659 ; closes #4659
2018-02-25 17:43:28 +01:00
Andreas Rumpf
b35ee82c48
fixes #6992
2018-02-25 17:28:47 +01:00
Oscar Nihlgård
e4515f304a
Improve semchecking for duplicate cases in case statements ( #7176 )
...
* Improve semchecking for duplicate cases in case statements
* Revert to previous solution
* Improve test
2018-02-24 14:56:17 +01:00
Andreas Rumpf
3dab0877da
fixes #7247
2018-02-23 11:42:19 +01:00
cooldome
45d3e2e510
genTryCpp codegen. Fixes #7232 . Fixes #7239 ( #7240 )
2018-02-22 09:58:56 +01:00
Araq
67380f71d6
symbol files: delay the emission of forwarded procs
2018-02-21 11:42:58 +01:00
Araq
046ed4ed22
symbol files: implemented accurate module dependency tracking
2018-02-21 00:48:23 +01:00
Araq
2fcc163746
symbol files: more progress
2018-02-20 01:15:43 +01:00
Araq
564cff729a
new symbol files: loading of ASTs and module graphs
2018-02-17 00:40:49 +01:00
Araq
037ce16f44
improve the error message for mutability problems
2018-02-17 00:40:48 +01:00
Araq
f3b8d92216
new .rod file implementation; part 1: writing of the file
2018-02-17 00:40:48 +01:00
Andreas Rumpf
89782460a3
fixes #7215
2018-02-14 10:09:35 +01:00
Araq
83a8019027
symbol files: bugfixes
2018-02-13 17:19:52 +01:00
cooldome
d24b6667c6
genTryCpp to catch by Nim type, ready for first review ( #7196 )
...
* Rewrite genTryCpp
* correction
* Implement polymorphic raise in cpp
* revert backticks in emit
* Cleanp a comment
* revert test changes
* better handling of <new> header
2018-02-12 21:23:34 +01:00
cooldome
7cbab49645
nested finally bug ( #7207 )
2018-02-12 21:20:49 +01:00
Araq
4c702d5ab2
Merge branch 'devel' into araq-fixes-6960
2018-02-12 18:55:41 +01:00
Araq
04af9d4051
fixes #3711
2018-02-12 18:45:39 +01:00
Andreas Rumpf
fc967cc715
custom pragmas: proper error handling
2018-02-12 16:40:27 +01:00
Andreas Rumpf
cddc389784
disable the undocumented 'import ' feature; allow import std / strutils; fixes #2819 ; refs #6700
2018-02-12 16:40:27 +01:00
Andreas Rumpf
a4deceb134
fixes #6186
2018-02-11 14:52:26 +01:00
Andreas Rumpf
358709e9cb
fixes #6960
2018-02-11 13:55:56 +01:00
Araq
2c1f1f21bf
fixes #3985
2018-02-10 21:20:48 +01:00
Araq
ef6eda4cb4
better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types
2018-02-10 20:55:21 +01:00
cooldome
51d81c4e23
Fixes #6853 ( #7188 )
...
* Fixes #6853
* Add a test for a const empty array
2018-02-10 16:44:41 +01:00
Araq
5c5e54d3a9
fixes #7153
2018-02-10 14:09:04 +01:00
Andreas Rumpf
70e8640244
move new sha1 module into the new 'std' namespace
2018-02-06 17:40:31 +01:00
Andreas Rumpf
2199f83280
improve error message for twrongcolon
2018-02-06 09:15:54 +01:00
Andreas Rumpf
fa0f5d0238
fixes #6946
2018-02-05 21:21:22 +01:00
Andreas Rumpf
d72578b3dd
more chatty error message for the 'discard' checking
2018-02-05 16:49:06 +01:00
Andreas Rumpf
e2cf3b94f2
improve the error message for thread local variables
2018-02-05 08:47:35 +01:00
Andreas Rumpf
31263ef8f3
fixes #5450
2018-02-04 07:35:32 +01:00
Andreas Rumpf
c1679edad2
fixes #7080
2018-02-04 07:23:47 +01:00
Andreas Rumpf
326b7dc556
improve the error messages regarding type mismatches in overloading resolution
2018-02-04 07:04:50 +01:00
Andreas Rumpf
4e0b3fefa3
Merge branch 'devel' into araq-overloading-symmetry
2018-02-03 07:58:31 +01:00
Andreas Rumpf
992fd38487
make tests green again
2018-02-03 07:57:47 +01:00
Andreas Rumpf
274fafb2df
fixes #6961
2018-02-02 17:35:04 +01:00
Andreas Rumpf
212457f5e0
the .deprecated pragma for procs now supports a user-definable deprecation message
2018-02-02 12:53:38 +01:00
Andreas Rumpf
1b22a3b346
disabled non-documented overloading rule for templates and macros
2018-02-02 11:00:42 +01:00
Andreas Rumpf
bd1dfa4b38
better type inference for numerical types; prerequisitive for version 1
2018-02-02 09:29:05 +01:00
cooldome
5460bd2764
Small performance improvement in sempass2 ( #7168 )
2018-02-01 18:34:37 +01:00