Commit Graph

4012 Commits

Author SHA1 Message Date
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
Yuriy Glukhov
60c7bbc8b7 Jump to definition on import will open the imported module (#7155) 2018-01-31 16:39:01 +01:00
GULPF
94038545be Fixes codegen bug with literal negative zero, fixes #7079 (#7158)
* Fixes #7079

* Fix handling of neg zero during constant folding
2018-01-31 16:29:42 +01:00
Andreas Rumpf
b5538990a2 nimTypeNames feature: show generics properly 2018-01-31 14:29:08 +01:00
Andreas Rumpf
7648eb45b3 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-01-31 08:01:07 +01:00
Andreas Rumpf
a605fa8ba6 fixes #7129 2018-01-30 19:51:38 +01:00
Yuriy Glukhov
d84ace8a5b Fixes #7140 (#7154) 2018-01-30 15:25:41 +01:00
Yuriy Glukhov
02c1f120eb Fixes nimsuggest#78 (#7151) 2018-01-29 23:41:32 +01:00
cooldome
12b11fd848 Fix compiler crash on try expression with infix as (Fixes #7116) (#7112)
* Fix compiler crash

* make sure type is not lost
2018-01-29 05:59:49 +01:00
Araq
ad222e3015 Merge branch 'devel' into araq-newlines 2018-01-28 11:38:52 +01:00
Araq
7206c692a3 in triple line string literals the newline should be '\n' too 2018-01-28 11:38:25 +01:00
Andreas Rumpf
68dfd1729e fixes #6989 2018-01-27 07:59:40 +01:00
Andreas Rumpf
1d9087245c JS codegen bugfix: don't crash on wrong importcpp patterns 2018-01-25 16:02:13 +01:00
Andreas Rumpf
80caca15bd fixes #7089 2018-01-24 20:08:17 +01:00
Andreas Rumpf
c99f952dfb basic 'lent T' test works 2018-01-21 03:04:22 +01:00
Andreas Rumpf
33b0e73962 fixes most recent iterators-as-expressions regression 2018-01-18 18:57:29 +01:00
Andreas Rumpf
090d22c715 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-01-18 11:40:30 +01:00
Andreas Rumpf
6a2b57b4aa fixes #7093 2018-01-18 11:40:18 +01:00
cooldome
27aab0be16 Custom pragmas in procs bug fix (#7086) 2018-01-18 10:38:55 +01:00